Skip to content

Commit

Permalink
Fixed some tests I broke
Browse files Browse the repository at this point in the history
  • Loading branch information
cohansen committed Jul 16, 2024
1 parent 0b4990d commit 0e9d599
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/utilities/sequence-editor/to-seq-json.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ HDW_CMD`;
id: 'test',
metadata: {},
};
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandDictionary, [], null, id);
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandDictionary, id);
expect(actual).toEqual(expectedJson);
});

Expand All @@ -97,7 +97,7 @@ HDW_CMD_2
id: 'test',
metadata: {},
};
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandDictionary, [], null, id);
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandDictionary, id);
expect(actual).toEqual(expectedJson);
});

Expand Down Expand Up @@ -151,7 +151,7 @@ C FSW_CMD_1 0.123 -2.34 # inline description
},
],
};
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandDictionary, [], null, id);
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandDictionary, id);
expect(actual).toEqual(expectedJson);
});

Expand Down Expand Up @@ -210,7 +210,7 @@ R71 ECHO L02STR
},
],
};
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandBanana, [], null, id);
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandBanana, id);
expect(actual).toEqual(expectedJson);
});

Expand Down Expand Up @@ -269,7 +269,7 @@ R10 PACKAGE_BANANA 2 [ "bundle1" 5 "bundle2" 10]
},
],
};
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandBanana, [], null, id);
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandBanana, id);
expect(actual).toEqual(expectedJson);
});

Expand All @@ -281,7 +281,7 @@ C ECHO L00STR
C ECHO "L00STR"
C ECHO L01STR
`;
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandBanana, [], null, id);
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandBanana, id);
const expectedJson = {
id: 'test.inline',
locals: [
Expand Down Expand Up @@ -364,7 +364,7 @@ C ECHO L01STR
]);
permutations.forEach((ordering: string[]) => {
const input = ordering.join('\n\n');
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(input), input, commandBanana, [], null, 'id');
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(input), input, commandBanana, 'id');
const expected = {
id: 'test.seq',
locals: [
Expand Down Expand Up @@ -406,7 +406,7 @@ C ECHO L01STR
R1 ECHO "Can this handle \\"Escaped\\" quotes??" # and this "too"`;
const id = 'escaped_quotes';
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandBanana, [], null, id);
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandBanana, id);
const expected = {
id,
metadata: {},
Expand Down Expand Up @@ -441,7 +441,7 @@ R00:00:01 ECHO "Can this handle \\"Escaped\\" quotes??" # and this "too"
@MODEL "Variable" 0 "Offset"
@MODEL "Variable \\"Escaped\\"" 0 "Offset \\" \\" \\"\\""`;
const id = 'escaped_metadata';
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandBanana, [], null, id);
const actual = sequenceToSeqJson(SeqLanguage.parser.parse(seq), seq, commandBanana, id);
const expected = {
id,
metadata: {},
Expand Down

0 comments on commit 0e9d599

Please sign in to comment.