Update test assertions for DrumGroupDevice tags in Ableton hybrid export
This commit is contained in:
@@ -178,11 +178,23 @@ test('serializes every nested Live 10 Simpler as an identified list member', asy
|
|||||||
const simplerTags = [...xml.matchAll(/<OriginalSimpler(?:\s[^>]*)?>/g)].map(
|
const simplerTags = [...xml.matchAll(/<OriginalSimpler(?:\s[^>]*)?>/g)].map(
|
||||||
(match) => match[0],
|
(match) => match[0],
|
||||||
);
|
);
|
||||||
|
const rackTags = [...xml.matchAll(/<DrumGroupDevice\b[\s\S]*?<\/DrumGroupDevice>/g)].map(
|
||||||
|
(match) => match[0],
|
||||||
|
);
|
||||||
|
|
||||||
assert.ok(simplerTags.length > 0);
|
assert.ok(simplerTags.length > 0);
|
||||||
assert.ok(simplerTags.every((tag) => /\sId="\d+"/.test(tag)));
|
assert.ok(simplerTags.every((tag) => /\sId="\d+"/.test(tag)));
|
||||||
|
assert.ok(rackTags.length > 0);
|
||||||
|
assert.ok(rackTags.every((rack) => /<LockId Value="0"\s*\/>/.test(rack)));
|
||||||
|
assert.ok(rackTags.every((rack) => /<LockSeal Value="0"\s*\/>/.test(rack)));
|
||||||
|
assert.ok(
|
||||||
|
rackTags.every(
|
||||||
|
(rack) => [...rack.matchAll(/<IsSelected Value="true"\s*\/>/g)].length === 1,
|
||||||
|
),
|
||||||
|
);
|
||||||
assert.doesNotMatch(xml, /<ReturnBranch\s/);
|
assert.doesNotMatch(xml, /<ReturnBranch\s/);
|
||||||
assert.doesNotMatch(xml, /<AudioBranchSendInfo\s/);
|
assert.doesNotMatch(xml, /<AudioBranchSendInfo\s/);
|
||||||
|
assert.doesNotMatch(xml, /Big Break Kit/);
|
||||||
} finally {
|
} finally {
|
||||||
await server.close();
|
await server.close();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user