Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
banga committed Jul 5, 2024
1 parent bd6e5c3 commit 921447d
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/highlightSyntaxInLine.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ test('highlighting should load languages on-demand', async () => {
});
expect(highlighter.getLoadedLanguages()).toEqual([]);

await highlightSyntaxInLine(referenceString, 'test.c', highlighter);
await highlightSyntaxInLine(
referenceString,
'test.c',
highlighter,
'dark-plus'
);
expect(highlighter.getLoadedLanguages()).toEqual(['c']);
});

0 comments on commit 921447d

Please sign in to comment.