Browse Source

use chai for improved string diffing

tags/v2.1.0
David da Silva 11 years ago
parent
commit
954a8fbf15
3 changed files with 5 additions and 2 deletions
  1. +1
    -0
      package.json
  2. +3
    -1
      test/helper.js
  3. +1
    -1
      test/render-test.js

+ 1
- 0
package.json View File

@@ -39,6 +39,7 @@
"test-browser-local": "npm run pre-test-browser && zuul --local 8080 -- test/context-test.js test/scanner-test.js test/parse-test.js test/render-test-browser.js" "test-browser-local": "npm run pre-test-browser && zuul --local 8080 -- test/context-test.js test/scanner-test.js test/parse-test.js test/render-test-browser.js"
}, },
"devDependencies": { "devDependencies": {
"chai": "^2.3.0",
"eslint": "^0.20.0", "eslint": "^0.20.0",
"mocha": "^2.1.0", "mocha": "^2.1.0",
"zuul": "^2.1.1" "zuul": "^2.1.1"


+ 3
- 1
test/helper.js View File

@@ -1,2 +1,4 @@
assert = require('assert');
var chai = require('chai');
assert = chai.assert;
chai.should();
Mustache = require('../mustache'); Mustache = require('../mustache');

+ 1
- 1
test/render-test.js View File

@@ -20,7 +20,7 @@ describe('Mustache.render', function () {
output = Mustache.render(test.template, view); output = Mustache.render(test.template, view);
} }


assert.equal(output, test.expect);
output.should.equal(test.expect);
}); });


}); });


Loading…
Cancel
Save