From 4cda706b6939d0723c3fd45b3b546f4bf0f03abe Mon Sep 17 00:00:00 2001 From: Victor Giers Date: Tue, 14 Jul 2026 11:27:33 +0200 Subject: [PATCH] Update test assertions for Live 10 Simplers' attack and release times --- tests/ableton-hybrid.test.ts | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tests/ableton-hybrid.test.ts b/tests/ableton-hybrid.test.ts index e607900..5cc0d44 100644 --- a/tests/ableton-hybrid.test.ts +++ b/tests/ableton-hybrid.test.ts @@ -232,6 +232,8 @@ test('serializes nested Live 10 Simplers without artificial empty Session clips' const rackTags = [...xml.matchAll(//g)].map( (match) => match[0], ); + const expectedAttack = (200 / 255) * 1000; + const expectedRelease = (20 / 255) * 1000; assert.ok(simplerTags.length > 0); assert.ok(simplerTags.every((tag) => /\sId="\d+"/.test(tag))); @@ -248,12 +250,16 @@ test('serializes nested Live 10 Simplers without artificial empty Session clips' ); assert.ok( simplerBlocks.every((simpler) => - /[\s\S]*?[\s\S]*?/.test(simpler), + new RegExp( + `[\\s\\S]*?[\\s\\S]*?`, + ).test(simpler), ), ); assert.ok( simplerBlocks.every((simpler) => - /[\s\S]*?[\s\S]*?/.test(simpler), + new RegExp( + `[\\s\\S]*?[\\s\\S]*?`, + ).test(simpler), ), ); assert.ok(rackTags.length > 0); @@ -266,6 +272,7 @@ test('serializes nested Live 10 Simplers without artificial empty Session clips' assert.doesNotMatch(xml, /