From dadeabbce84e22c854f28e43af57b9dcdf9b0249 Mon Sep 17 00:00:00 2001 From: Roman Dvornov Date: Thu, 16 Feb 2017 02:23:39 +0300 Subject: [PATCH] add some tests --- test/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/index.js b/test/index.js index 4b6080f..a862f43 100644 --- a/test/index.js +++ b/test/index.js @@ -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