Skip to content

Commit

Permalink
test(lexer): fix broken tests
Browse files Browse the repository at this point in the history
  • Loading branch information
wincent committed Aug 3, 2023
1 parent 6c514eb commit 70cf01c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/lexer/src/__tests__/lex-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ describe('lex()', () => {
// Build lexer.
const ast = build(definition);

// Remove leading doc comment.
invariant(ast.statements.shift()?.kind === 'DocComment');

// Remove `import Token from './Token'` statement.
invariant(ast.statements.shift()?.kind === 'ImportStatement');

Expand Down

0 comments on commit 70cf01c

Please sign in to comment.