Release v0.7.0 - Automatic pairing and validated MA audio playback
Validate and generate manual release / package (push) Waiting to run

This commit is contained in:
Jason committed 2026-12-04 08:58:47 -05:00
1 parent 83d168f5a1
commit 1ed30567fb
48 files changed
+2717 -742

No files matched your search

+10
View File
@@ -74,6 +74,16 @@ test('partial apply failure restores outgoing playback', async () => {
f.provider.apply=async()=>{throw new MusicError('unavailable');};
await assert.rejects(f.controller.update({scene:scene('B')})); assert.equal(f.playback.items[0],'A');
});
test('uncertain apply preserves the failed command and skips transition rollback', async () => {
const f = fixture();
await f.controller.update({scene: scene()});
const failure = Object.assign(new MusicError('uncertain'), {command: 'player_queues/play_media'});
f.provider.apply = async () => { throw failure; };
await assert.rejects(f.controller.update({scene: scene('B')}), error => error === failure);
assert.equal(f.controller.current, null);
assert.deepEqual(f.log.filter(([action]) => ['stop', 'restore'].includes(action)), [['stop']]);
});
test('obsolete async resolve is rejected before stop/apply', async () => {
const f=fixture(); let resume, entered;
const ready=new Promise(r=>entered=r), normal=f.provider.resolve;