Skip to content

Commit

Permalink
Replace @import with @use in tests (#353)
Browse files Browse the repository at this point in the history
  • Loading branch information
ntkme authored Dec 12, 2024
1 parent 5a10661 commit f51ae4a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/src/compiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,14 @@ describe('compiler', () => {

describe('compilation ID', () => {
it('resets after callback compilations complete', () => {
compiler.compileString('@import "foo"', {importers});
compiler.compileString('@use "foo"', {importers});
compiler.compileString('');
expect(getIdHistory()).toEqual([1, 2, 1]);
});

it('keeps working after failed compilations', () => {
expect(() => compiler.compileString('invalid')).toThrow();
compiler.compileString('@import "foo"', {importers});
compiler.compileString('@use "foo"', {importers});
expect(getIdHistory()).toEqual([1, 1, 2]);
});
});
Expand Down

0 comments on commit f51ae4a

Please sign in to comment.