Skip to content

Commit

Permalink
fixed even more of the tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sokra committed Oct 16, 2013
1 parent 8ac46d3 commit bc843d0
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions test/Compiler.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ describe("Compiler", function() {
});
c.run(function(err, stats) {
if(err) throw err;
should.exist(stats);
should.strictEqual(typeof stats, "object");
stats = stats.toJson({
modules: true,
reasons: true
});
should.exist(stats);
should.strictEqual(typeof stats, "object");
stats.should.have.property("errors");
Array.isArray(stats.errors).should.be.ok;
if(stats.errors.length > 0) {
Expand Down
4 changes: 2 additions & 2 deletions test/Errors.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ describe("Errors", function() {
};
c.run(function(err, stats) {
if(err) throw err;
should.exist(stats);
should.strictEqual(typeof stats, "object");
stats = stats.toJson();
should.exist(stats);
should.strictEqual(typeof stats, "object");
stats.should.have.property("errors");
stats.should.have.property("warnings");
Array.isArray(stats.errors).should.be.ok;
Expand Down
2 changes: 1 addition & 1 deletion test/Parser.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ describe("Parser", function() {
return true;
});
var actual = testParser.parse(source);
should.exist(actual);
should.strictEqual(typeof actual, "object");
actual.should.be.eql(state);
});
});
Expand Down

0 comments on commit bc843d0

Please sign in to comment.