diff options
author | Samy Pessé <samypesse@gmail.com> | 2015-03-24 13:11:29 +0100 |
---|---|---|
committer | Samy Pessé <samypesse@gmail.com> | 2015-03-24 13:11:29 +0100 |
commit | 73c69923b34b30105750d1e72990d5a9b0ca1596 (patch) | |
tree | 659ae14dc13b6d4478ba615d93df343f60e4374a /test/assertions.js | |
parent | afbca4bdf522f01e12cf61ec738c5c81fc05209b (diff) | |
download | gitbook-73c69923b34b30105750d1e72990d5a9b0ca1596.zip gitbook-73c69923b34b30105750d1e72990d5a9b0ca1596.tar.gz gitbook-73c69923b34b30105750d1e72990d5a9b0ca1596.tar.bz2 |
Add test for summary parsing
Update gitbook-parsers
Diffstat (limited to 'test/assertions.js')
-rw-r--r-- | test/assertions.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/assertions.js b/test/assertions.js index 8bb440f..83465e1 100644 --- a/test/assertions.js +++ b/test/assertions.js @@ -5,7 +5,7 @@ var should = require('should'); var cheerio = require('cheerio'); should.Assertion.add('file', function(file, description) { - this.params = { operator: 'have file ' + file, message: description }; + this.params = { actual: this.obj.toString(), operator: 'have file ' + file, message: description }; this.obj.should.have.property('options').which.is.an.Object; this.obj.options.should.have.property('output').which.is.a.String; @@ -13,7 +13,7 @@ should.Assertion.add('file', function(file, description) { }); should.Assertion.add('jsonfile', function(file, description) { - this.params = { operator: 'have valid jsonfile ' + file, message: description }; + this.params = { actual: this.obj.toString(), operator: 'have valid jsonfile ' + file, message: description }; this.obj.should.have.property('options').which.is.an.Object; this.obj.options.should.have.property('output').which.is.a.String; |