diff options
| author | Michael Williamson <mike@zwobble.org> | 2016-11-16 20:06:56 +0000 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2016-11-16 20:06:56 +0000 |
| commit | 0cf45c8c91d7779e5718cc23844c6937ae875d11 (patch) | |
| tree | fa0491730dcfe4dff170011a4d02c827b7db5b65 | |
| parent | 24d872da7e3c919441f1a6dfe5b7dc121a580f50 (diff) | |
Add test for unrecognised characters
| -rw-r--r-- | test/styles/parser/tokeniser.tests.js | 5 |
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("", []); }); |
