aboutsummaryrefslogtreecommitdiff
path: root/test/styles/parser/tokeniser.tests.js
diff options
context:
space:
mode:
authorMichael Williamson <mike@zwobble.org>2016-11-16 20:06:56 +0000
committerMichael Williamson <mike@zwobble.org>2016-11-16 20:06:56 +0000
commit0cf45c8c91d7779e5718cc23844c6937ae875d11 (patch)
treefa0491730dcfe4dff170011a4d02c827b7db5b65 /test/styles/parser/tokeniser.tests.js
parent24d872da7e3c919441f1a6dfe5b7dc121a580f50 (diff)
Add test for unrecognised characters
Diffstat (limited to 'test/styles/parser/tokeniser.tests.js')
-rw-r--r--test/styles/parser/tokeniser.tests.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/styles/parser/tokeniser.tests.js b/test/styles/parser/tokeniser.tests.js
index 2faa312..e8b9d00 100644
--- a/test/styles/parser/tokeniser.tests.js
+++ b/test/styles/parser/tokeniser.tests.js
@@ -6,6 +6,11 @@ var hasProperties = hamjest.hasProperties;
var tokenise = require("../../../lib/styles/parser/tokeniser").tokenise;
var test = require("../../test")(module);
+
+test("unknown tokens are tokenised", function() {
+ assertTokens("~", [isToken("unrecognisedCharacter", "~")]);
+});
+
test("empty string is tokenised to end of file token", function() {
assertTokens("", []);
});