Skip to content

Commit

Permalink
add some tests
Browse files Browse the repository at this point in the history
  • Loading branch information
lahmatiy committed Feb 15, 2017
1 parent 5a1abbd commit dadeabb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,12 @@ var sass = ruleTester(validator.rule, validator.ruleName, {
// base test
css(null, function(tr) {
tr.ok('.foo { color: red }');
tr.ok('.foo { color: #123456 }');
tr.notOk('.foo { color: red green }', messages.uncomplete('color'));
tr.notOk('.foo { color: 1 }', messages.invalid('color'));
tr.notOk('.foo { color: #12345 }', messages.invalid('color'));
tr.notOk('.foo { color: &a }', messages.parseError('&a'));
tr.notOk('.foo { baz: 123 }', 'Unknown property: baz');
});

// ignore values with less extenstions
Expand Down

0 comments on commit dadeabb

Please sign in to comment.