summaryrefslogtreecommitdiffstats
path: root/spec/tokenizer.js
diff options
context:
space:
mode:
authorAymerick <aymerick@jehanne.org>2015-05-01 11:35:25 +0200
committerAymerick <aymerick@jehanne.org>2015-05-01 11:35:25 +0200
commitafd595bd6e19d8b64e8c3af7a29c157e55797ca6 (patch)
tree96074adf0d4dcdf62aee173a3c151e8fae6b6c79 /spec/tokenizer.js
parent891f48b7e9c321dd9cbe7a898533eb6b2434b8a0 (diff)
downloadhandlebars.js-afd595bd6e19d8b64e8c3af7a29c157e55797ca6.zip
handlebars.js-afd595bd6e19d8b64e8c3af7a29c157e55797ca6.tar.gz
handlebars.js-afd595bd6e19d8b64e8c3af7a29c157e55797ca6.tar.bz2
Fix tokenizer test for double quoted strings
There is two consecutive tests with the same input data: "{{ foo bar \'baz\' }}" I suppose the first test should be about testing double quoted string.
Diffstat (limited to 'spec/tokenizer.js')
-rw-r--r--spec/tokenizer.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/tokenizer.js b/spec/tokenizer.js
index ad71dc9..a474dfb 100644
--- a/spec/tokenizer.js
+++ b/spec/tokenizer.js
@@ -264,7 +264,7 @@ describe('Tokenizer', function() {
});
it('tokenizes mustaches with String params as "OPEN ID ID STRING CLOSE"', function() {
- var result = tokenize('{{ foo bar \'baz\' }}');
+ var result = tokenize('{{ foo bar \"baz\" }}');
shouldMatchTokens(result, ['OPEN', 'ID', 'ID', 'STRING', 'CLOSE']);
shouldBeToken(result[3], 'STRING', 'baz');
});