Skip to content

Commit bc843d0

Browse files
committed
fixed even more of the tests
1 parent 8ac46d3 commit bc843d0

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎test/Compiler.test.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,12 @@ describe("Compiler", function() {
4040
});
4141
c.run(function(err, stats) {
4242
if(err) throw err;
43-
should.exist(stats);
43+
should.strictEqual(typeof stats, "object");
4444
stats = stats.toJson({
4545
modules: true,
4646
reasons: true
4747
});
48-
should.exist(stats);
48+
should.strictEqual(typeof stats, "object");
4949
stats.should.have.property("errors");
5050
Array.isArray(stats.errors).should.be.ok;
5151
if(stats.errors.length > 0) {

‎test/Errors.test.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ describe("Errors", function() {
2222
};
2323
c.run(function(err, stats) {
2424
if(err) throw err;
25-
should.exist(stats);
25+
should.strictEqual(typeof stats, "object");
2626
stats = stats.toJson();
27-
should.exist(stats);
27+
should.strictEqual(typeof stats, "object");
2828
stats.should.have.property("errors");
2929
stats.should.have.property("warnings");
3030
Array.isArray(stats.errors).should.be.ok;

‎test/Parser.test.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe("Parser", function() {
134134
return true;
135135
});
136136
var actual = testParser.parse(source);
137-
should.exist(actual);
137+
should.strictEqual(typeof actual, "object");
138138
actual.should.be.eql(state);
139139
});
140140
});

0 commit comments

Comments
 (0)