-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use chai for improved string diffing
- Loading branch information
1 parent
abd32f0
commit 954a8fb
Showing
3 changed files
with
5 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
assert = require('assert'); | ||
var chai = require('chai'); | ||
assert = chai.assert; | ||
chai.should(); | ||
Mustache = require('../mustache'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,7 +20,7 @@ describe('Mustache.render', function () { | |
output = Mustache.render(test.template, view); | ||
} | ||
|
||
assert.equal(output, test.expect); | ||
output.should.equal(test.expect); | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
dasilvacontin
Author
Collaborator
|
||
}); | ||
|
||
}); | ||
|
Not happy about Travis reporting it as a green build though :( Should we even test IE8?
I havent digged into the issue more than reading this chai discussion which says IE8 testing should be possible.