Fix data structure setup in Live 10 Simpler serialization test
This commit is contained in:
@@ -206,7 +206,12 @@ test('serializes every nested Live 10 Simpler as an identified list member', asy
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
const { buildProject } = await server.ssrLoadModule('/src/lib/exporters/ableton/builders.ts');
|
const { buildProject } = await server.ssrLoadModule('/src/lib/exporters/ableton/builders.ts');
|
||||||
const generated = await buildProject(project(), {
|
const data = project();
|
||||||
|
delete data.groupPatterns[0].notes[1];
|
||||||
|
delete data.groupPatterns[1].notes[0];
|
||||||
|
data.groupPatterns[1].notes[1] = [note(67, 48), note(68, 96)];
|
||||||
|
data.songPositions = [];
|
||||||
|
const generated = await buildProject(data, {
|
||||||
abletonVersion: '10',
|
abletonVersion: '10',
|
||||||
includeArchivedSamples: true,
|
includeArchivedSamples: true,
|
||||||
clips: false,
|
clips: false,
|
||||||
@@ -230,6 +235,7 @@ test('serializes every nested Live 10 Simpler as an identified list member', asy
|
|||||||
assert.ok(
|
assert.ok(
|
||||||
rackTags.every((rack) => [...rack.matchAll(/<IsSelected Value="true"\s*\/>/g)].length === 1),
|
rackTags.every((rack) => [...rack.matchAll(/<IsSelected Value="true"\s*\/>/g)].length === 1),
|
||||||
);
|
);
|
||||||
|
assert.equal([...xml.matchAll(/<MidiClip(?:\s[^>]*)?>/g)].length, 2);
|
||||||
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/);
|
assert.doesNotMatch(xml, /Big Break Kit/);
|
||||||
|
|||||||
Reference in New Issue
Block a user