Skip to content

Commit

Permalink
Add tests for empty files
Browse files Browse the repository at this point in the history
Prevents regressions like #395

#21
  • Loading branch information
jhnns committed Mar 7, 2017
1 parent f44289b commit a17a308
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
});
});
});

Expand Down
Empty file added test/sass/empty.sass
Empty file.
Empty file added test/scss/empty.scss
Empty file.

0 comments on commit a17a308

Please sign in to comment.