diff options
author | Aymerick <aymerick@jehanne.org> | 2015-05-01 11:35:25 +0200 |
---|---|---|
committer | Aymerick <aymerick@jehanne.org> | 2015-05-01 11:35:25 +0200 |
commit | afd595bd6e19d8b64e8c3af7a29c157e55797ca6 (patch) | |
tree | 96074adf0d4dcdf62aee173a3c151e8fae6b6c79 /spec/tokenizer.js | |
parent | 891f48b7e9c321dd9cbe7a898533eb6b2434b8a0 (diff) | |
download | handlebars.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.js | 2 |
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'); }); |