Skip to content

Commit

Permalink
Add test for other types of at-rules
Browse files Browse the repository at this point in the history
  • Loading branch information
jwilsson committed Aug 20, 2016
1 parent 6ad80a7 commit 7860bd2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions test/specs/linters/string_quotes.js
Original file line number Diff line number Diff line change
Expand Up @@ -313,6 +313,19 @@ describe('lesshint', function () {
});
});

it('should not check irrelevant @-rules', function () {
var source = '@media (screen) {}';
var options = {
style: 'double'
};

return spec.parse(source, function (ast) {
var result = spec.linter.lint(options, ast.root.first);

expect(result).to.deep.undefined;
});
});

it('should throw on invalid "style" value', function () {
var source = ".foo { content: 'Hello world' }";
var options = {
Expand Down

0 comments on commit 7860bd2

Please sign in to comment.