Skip to content

Commit a17a308

Browse files
committed
Add tests for empty files
Prevents regressions like #395 #21
1 parent f44289b commit a17a308

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

test/index.test.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ syntaxStyles.forEach(ext => {
9393
data: "$prepended-data: hotpink;"
9494
}));
9595
});
96+
// See https://github.com/webpack-contrib/sass-loader/issues/21
97+
describe("empty files", () => {
98+
it("should compile without errors", () => execTest("empty"));
99+
});
96100
});
97101
});
98102

test/sass/empty.sass

Whitespace-only changes.

test/scss/empty.scss

Whitespace-only changes.

0 commit comments

Comments
 (0)