diff --git a/plugins/sass_test.ts b/plugins/sass_test.ts index 02f171c22..e6c2e3847 100644 --- a/plugins/sass_test.ts +++ b/plugins/sass_test.ts @@ -24,10 +24,14 @@ Deno.test('project sass loader plugin', () => { href: 'https://localhost/' } }) - const { code, loader } = plugin.transform( + let ret = plugin.transform( (new TextEncoder).encode('$someVar: 123px\n.some-selector\n width: 123px'), 'test.sass' ) - assertEquals(code, '.some-selector {\n width: 123px;\n}') - assertEquals(loader, 'css') -}) \ No newline at end of file + assertEquals(ret.code, '.some-selector {\n width: 123px;\n}') + ret = plugin({ indentType: 'tab', indentWidth: 2 }).transform( + (new TextEncoder).encode('$someVar: 123px\n.some-selector\n width: 123px'), + 'test.sass' + ) + assertEquals(ret.code, '.some-selector {\n\t\twidth: 123px;\n}') +})