Skip to content

Commit

Permalink
fix(test.js): change assertions to avoid JavaScript errors
Browse files Browse the repository at this point in the history
  • Loading branch information
felixzapata committed Aug 11, 2016
1 parent 9fbc86c commit 7f9956c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ describe('gulp-axe-core', function() {
gulp.src(fixtures('working.html'))
.pipe(axeCore())
.pipe(sassert.end(function() {
assert.equal(output.match(/Found no accessibility violations./gi).length, 1);
assert.equal(output.match(/(File to test|test\/fixtures\/working.html)/gi).length, 2);
assert.notEqual(output.match(/Found no accessibility violations./gi), null);
assert.notEqual(output.match(/(File to test|test\/fixtures\/working.html)/gi), null);
done();
}));
});
Expand All @@ -55,8 +55,8 @@ describe('gulp-axe-core', function() {
gulp.src(fixtures('broken.html'))
.pipe(axeCore())
.pipe(sassert.end(function() {
assert.equal(output.match(/Found 1 accessibility violations/gi).length, 1);
assert.equal(output.match(/(File to test|test\/fixtures\/broken.html)/gi).length, 2);
assert.notEqual(output.match(/Found 1 accessibility violations/gi), null);
assert.notEqual(output.match(/(File to test|test\/fixtures\/broken.html)/gi), null);
done();
}));
});
Expand All @@ -71,7 +71,7 @@ describe('gulp-axe-core', function() {
.pipe(axeCore(options))
.pipe(sassert.end(function() {
var expected = path.join(__dirname, 'temp', 'allHtml.json');
fileExists(expected).should.equal(true);
assert(fileExists(expected), true);
done();
}));
});
Expand Down

0 comments on commit 7f9956c

Please sign in to comment.