Skip to content

Commit 978b2f9

Browse files
committed
Update test cases
1 parent 2f70c9c commit 978b2f9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

test/index.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,14 @@ describe('gcode-parser', () => {
8181
expect(data.cmds).to.deep.equal(['%wait']);
8282
}
8383

84+
{ // %wait ; Wait for the planner queue to empty
85+
const data = parseLine('%wait ; Wait for the planner queue to empty');
86+
expect(data).to.be.an('object');
87+
expect(data.line).to.be.an('string');
88+
expect(data.words).to.be.empty;
89+
expect(data.cmds).to.deep.equal(['%wait ; Wait for the planner queue to empty']);
90+
}
91+
8492
{ // %msg Restart spindle
8593
const data = parseLine('%msg Restart spindle');
8694
expect(data).to.be.an('object');

0 commit comments

Comments
 (0)