fix: make soundtrack loading terminal
This commit is contained in:
@@ -306,14 +306,18 @@ describe('soundtrack engine', () => {
|
||||
expect(test.mixer.setDriveEnergy).toHaveBeenLastCalledWith(sample);
|
||||
});
|
||||
|
||||
it('keeps dominant intro and direct-main load failures terminal', async () => {
|
||||
it('keeps dominant intro and main load failures terminal on every activation path', async () => {
|
||||
const intro = createEngineHarness(initialState, { rejectIntro: true });
|
||||
await expect(intro.graph.resume()).rejects.toThrow('/intro.opus unavailable');
|
||||
const main = createEngineHarness({
|
||||
const startMain = createEngineHarness(initialState, { rejectMain: true });
|
||||
await expect(startMain.graph.resume()).rejects.toThrow('/main.opus unavailable');
|
||||
expect(startMain.sourcesFor('/intro.opus')).toHaveLength(0);
|
||||
|
||||
const directMain = createEngineHarness({
|
||||
chapter: resolveChapterIntent('profile'),
|
||||
drive: { energy: 0, source: 'idle' },
|
||||
}, { rejectMain: true });
|
||||
await expect(main.graph.resume()).rejects.toThrow('/main.opus unavailable');
|
||||
await expect(directMain.graph.resume()).rejects.toThrow('/main.opus unavailable');
|
||||
});
|
||||
|
||||
it('stops and disconnects each owned source exactly once when closed twice', async () => {
|
||||
|
||||
Reference in New Issue
Block a user