Release v0.7.2 - Redesigned interface and persistent account settings
Validate and generate manual release / package (push) Waiting to run

This commit is contained in:
Jason committed 2026-12-04 11:08:09 -05:00
1 parent 1d894f59fb
commit 398749210a
35 files changed
+2807 -256

No files matched your search

+16
View File
@@ -25,6 +25,22 @@ test('policy precedence and explicit silence', () => {
assert.equal(candidates({defaultPlaylist:ref('world')})[0].playlist.id,'world');
assert.equal(candidates({})[0].playlist,null);
});
test('manual MA controls wait for the scene transition and carry the current fence', async () => {
const {controller,provider,log}=fixture();
controller.providers.ma=provider;
provider.control=async(action,value,ctx)=>{
ctx.check();
log.push([action,value,ctx.campaign,ctx.session,ctx.generation]);
};
const transition=controller.update({scene:{id:'ambient',playlist:{provider:'ma',id:'ambient'}}});
const pause=controller.control('pause');
await Promise.all([transition,pause]);
assert.deepEqual(log,[['resolve','ambient'],['apply','ambient'],['pause',undefined,'campaign','session',2]]);
const obsolete=controller.control('resume');
controller.cancel();
await assert.rejects(obsolete,{code:'stale'});
assert.equal(log.length,3);
});
test('inactive, unstarted and other scene combats ignored; boss ties stable', () => {
for (const change of [{active:false},{started:false},{sceneId:'B'}]) {
assert.equal(candidates({scene:scene(),combats:[{...combat([boss()]),...change}]})[0].playlist.id,'A');