Skip to content

Conversation

@danielfagerstrom
Copy link
Contributor

Testing against the Mustache spec.

There is an earlier pull request for the same topic, but that is against a very old version of mustache.js.

A couple of tests checking white space behavior and most of the optional lambda test fails against current mustache.js. To avoid breaking the build, it.skip is used for the failing tests they can be runned by setting the environment variable NOSKIP=true.

For the lambda tests I choose to embed all js functions with a function taking no argument, e.g.:

function() { return function(txt) { return "__" + txt + "__" }; }

for the function

function(txt) { return "__" + txt + "__" }

from the spec. This is following current behavior for functions in mustache.js, the description in manual(5), and @pvande do the lambda testing that way in Milk.

…ails in current mustache.js are skiped to not break the build.
Instruction for including sub module with Mustache specs.
mjackson added a commit that referenced this pull request Apr 4, 2013
@mjackson mjackson merged commit ecc2e2a into janl:master Apr 4, 2013
@phillipj phillipj mentioned this pull request May 5, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants