Skip to content

Commit

Permalink
fix: bug in packaging-tests due to change to extractExamples
Browse files Browse the repository at this point in the history
  • Loading branch information
pdubroy committed Apr 27, 2023
1 parent 34c30b6 commit 170d10b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/ohm-js/src/version.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/packaging-tests/test/test-ts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ test('Extras exports (TS)', async () => {
assert.ok(Object.keys(extras).length === 6);

const ex: {grammar: string; rule: string; example: string; shouldMatch: boolean} =
extras.extractExamples('//+ ""\nG{}')[0];
extras.extractExamples('G{//+ ""\n}')[0];
assert.equal(ex.grammar, 'G');

const exports = await import('ohm-js/extras');
Expand Down

0 comments on commit 170d10b

Please sign in to comment.