Skip to content

Commit

Permalink
Lint
Browse files Browse the repository at this point in the history
  • Loading branch information
jerivas committed Nov 27, 2023
1 parent a2e6f0c commit 25562de
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions js-api-spec/compiler.node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@ describe('Compiler', () => {
sandbox(dir => {
dir.write({'input-nested.scss': 'x {y: z}'});
const nestedImporter = {
canonicalize: (url: string) => new URL(`u:${url}`),
load: (url: typeof URL) => ({
canonicalize: () => new URL('foo:bar'),
load: () => ({
contents: compiler.compile(dir('input-nested.scss')).css,
syntax: 'scss' as const,
}),
Expand Down
8 changes: 4 additions & 4 deletions js-api-spec/compiler.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ export const getLogger = () => ({debug: spy(() => {})});

/* A slow importer that executes a callback after a delay */
export const getSlowImporter = (callback: () => void) => ({
canonicalize: async (url: string) => new URL('foo:bar'),
load: async (url: typeof URL) => {
canonicalize: async () => new URL('foo:bar'),
load: async () => {
await new Promise(resolve => setTimeout(resolve, 100));
callback();
return {contents: '', syntax: 'scss' as const};
Expand Down Expand Up @@ -67,8 +67,8 @@ describe('Compiler', () => {

it('performs compilations in callbacks', () => {
const nestedImporter = {
canonicalize: (url: string) => new URL(`u:${url}`),
load: (url: typeof URL) => ({
canonicalize: () => new URL('foo:bar'),
load: () => ({
contents: compiler.compileString('x {y: z}').css,
syntax: 'scss' as const,
}),
Expand Down

0 comments on commit 25562de

Please sign in to comment.