mirror of
https://github.com/Boof2015/prism.git
synced 2026-08-12 05:10:51 +02:00
Improved VU needle mode
This commit is contained in:
@@ -7,6 +7,7 @@ import { FileBackedProfileLibrary } from '../src/main/profileLibrary'
|
||||
import {
|
||||
createDefaultProfile,
|
||||
extractLocalProfileMetadata,
|
||||
mergeScopeSettings,
|
||||
normalizeScopeOrder,
|
||||
profileFileToProfile,
|
||||
profileToFileData,
|
||||
@@ -77,6 +78,28 @@ test('profile file serialization excludes geometry and round-trips with local me
|
||||
assert.equal(restored.scopeSettings.nowPlaying.showControls, true)
|
||||
})
|
||||
|
||||
test('mergeScopeSettings defaults missing or invalid VU needle channel settings to stereo', () => {
|
||||
const combined = mergeScopeSettings({
|
||||
vumeter: {
|
||||
mode: 'needle',
|
||||
orientation: 'horizontal',
|
||||
needleChannels: 'combined',
|
||||
},
|
||||
})
|
||||
const invalid = mergeScopeSettings({
|
||||
vumeter: {
|
||||
mode: 'needle',
|
||||
orientation: 'horizontal',
|
||||
needleChannels: 'mid',
|
||||
},
|
||||
})
|
||||
const missing = mergeScopeSettings({})
|
||||
|
||||
assert.equal(combined.vumeter.needleChannels, 'combined')
|
||||
assert.equal(invalid.vumeter.needleChannels, 'stereo')
|
||||
assert.equal(missing.vumeter.needleChannels, 'stereo')
|
||||
})
|
||||
|
||||
test('library saves, renames, deletes, and resolves filename collisions', async () => {
|
||||
const harness = await createHarness()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user