Skip to content

Commit

Permalink
add prefix to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
shellscape committed Feb 21, 2018
1 parent 8d6cd5f commit 2f47abe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ describe('stylelint-webpack-plugin', function () {
const error = stats.compilation.errors[0];

expect(error.message).to.contain('test/fixtures/single-error/test.scss');
expect(error.message).to.contain('3:1 Unexpected missing end-of-source newline (no-missing-end-of-source-newline)');
expect(error.message).to.contain('3:1 stylelint: Unexpected missing end-of-source newline (no-missing-end-of-source-newline)');
});
});

Expand All @@ -81,7 +81,7 @@ describe('stylelint-webpack-plugin', function () {
const warning = stats.compilation.warnings[0];

expect(warning.message).to.contain('test/fixtures/rule-warning/test.scss');
expect(warning.message).to.contain('2:10 Expected "#FFF" to be "#fff" (color-hex-case)');
expect(warning.message).to.contain('2:10 stylelint: Expected "#FFF" to be "#fff" (color-hex-case)');
});
});

Expand Down

0 comments on commit 2f47abe

Please sign in to comment.