Skip to content

Commit

Permalink
Update unit test to support 'G' time tag
Browse files Browse the repository at this point in the history
  • Loading branch information
goetzrrGit committed Aug 29, 2024
1 parent 3653274 commit b5e0b92
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/utilities/codemirror/custom-folder.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ const GROUND_ACTIVITIES = [
];

const REQUEST_ACTIVITIES = [
`@GROUND_EPOCH("Name", "+0.00") @REQUEST_BEGIN("request.name")
`G+00:00:00 "Name" @REQUEST_BEGIN("request.name")
C SEQ_ECHO ""
@METADATA "Key" "Value"
@METADATA "Key1" "Value"
Expand Down
6 changes: 3 additions & 3 deletions src/utilities/sequence-editor/token.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ R123T12:34:56 @GROUND_EVENT("ground_event.name") "foo" 1 2 3 # No Args
});

it('request', () => {
const input = `@GROUND_EPOCH("Name","+3:00") @REQUEST_BEGIN("request.name") # Description Text
const input = `G3 "Name" @REQUEST_BEGIN("request.name") # Description Text
C CMD_0 1 2 3
@METADATA "foo" "bar"
@MODEL "a" 1 "00:00:00"
Expand Down Expand Up @@ -268,9 +268,9 @@ A2024-123T12:34:56 @REQUEST_BEGIN("request2.name")

assert.equal(getNodeText(requests[0].getChild('RequestName')!, input), '"request.name"');
assert.equal(getNodeText(requests[0].getChild('LineComment')!, input), '# Description Text');
const request0GrondEpoch = requests[0].getChild('GroundEpoch');
const request0GrondEpoch = requests[0].getChild('TimeTag');
assert.equal(getNodeText(request0GrondEpoch!.getChild('Name')!, input), '"Name"');
assert.equal(getNodeText(request0GrondEpoch!.getChild('Delta')!, input), '"+3:00"');
assert.equal(getNodeText(request0GrondEpoch!.getChild('TimeGroundEpoch')!, input), 'G3 ');
assert.equal(requests[0].getChild('Steps')?.getChildren('Command').length, 4);
const request0Meta0 = requests[0].getChild('Metadata')!.getChild('MetaEntry')!;
assert.deepEqual(JSON.parse(getNodeText(request0Meta0.getChild('Value')!, input)), {
Expand Down

0 comments on commit b5e0b92

Please sign in to comment.