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, /