MCPcopy
hub / github.com/handlebars-lang/handlebars.js / shouldMatchTokens

Function shouldMatchTokens

spec/tokenizer.js:1–5  ·  view source on GitHub ↗
(result, tokens)

Source from the content-addressed store, hash-verified

1function shouldMatchTokens(result, tokens) {
2 for (var index = 0; index < result.length; index++) {
3 equals(result[index].name, tokens[index]);
4 }
5}
6function shouldBeToken(result, name, text) {
7 equals(result.name, name);
8 equals(result.text, text);

Callers 1

tokenizer.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected