Skip to content
This repository was archived by the owner on Jul 6, 2025. It is now read-only.

Commit b645f94

Browse files
author
X
authored
chore: update sass-loader plugin tests
1 parent cd8a593 commit b645f94

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

plugins/sass_test.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,14 @@ Deno.test('project sass loader plugin', () => {
2424
href: 'https://localhost/'
2525
}
2626
})
27-
const { code, loader } = plugin.transform(
27+
let ret = plugin.transform(
2828
(new TextEncoder).encode('$someVar: 123px\n.some-selector\n width: 123px'),
2929
'test.sass'
3030
)
31-
assertEquals(code, '.some-selector {\n width: 123px;\n}')
32-
assertEquals(loader, 'css')
33-
})
31+
assertEquals(ret.code, '.some-selector {\n width: 123px;\n}')
32+
ret = plugin({ indentType: 'tab', indentWidth: 2 }).transform(
33+
(new TextEncoder).encode('$someVar: 123px\n.some-selector\n width: 123px'),
34+
'test.sass'
35+
)
36+
assertEquals(ret.code, '.some-selector {\n\t\twidth: 123px;\n}')
37+
})

0 commit comments

Comments
 (0)