From a17a3080f966ac032db1c05b05cdf25c232623d8 Mon Sep 17 00:00:00 2001 From: Johannes Ewald Date: Wed, 8 Mar 2017 00:43:33 +0100 Subject: [PATCH] Add tests for empty files Prevents regressions like https://github.com/webpack-contrib/sass-loader/pull/395 https://github.com/webpack-contrib/sass-loader/issues/21 --- test/index.test.js | 4 ++++ test/sass/empty.sass | 0 test/scss/empty.scss | 0 3 files changed, 4 insertions(+) create mode 100644 test/sass/empty.sass create mode 100644 test/scss/empty.scss diff --git a/test/index.test.js b/test/index.test.js index 806dde04..a350c695 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -93,6 +93,10 @@ syntaxStyles.forEach(ext => { data: "$prepended-data: hotpink;" })); }); + // See https://github.com/webpack-contrib/sass-loader/issues/21 + describe("empty files", () => { + it("should compile without errors", () => execTest("empty")); + }); }); }); diff --git a/test/sass/empty.sass b/test/sass/empty.sass new file mode 100644 index 00000000..e69de29b diff --git a/test/scss/empty.scss b/test/scss/empty.scss new file mode 100644 index 00000000..e69de29b