Skip to content

Commit

Permalink
convert test/integration/reporters.spec.js to unexpected
Browse files Browse the repository at this point in the history
Signed-off-by: Christopher Hiller <boneskull@boneskull.com>
  • Loading branch information
boneskull committed Apr 21, 2018
1 parent 652a331 commit 92f50de
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions test/integration/reporters.spec.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
'use strict';

var assert = require('assert');
var os = require('os');
var fs = require('fs');
var crypto = require('crypto');
Expand All @@ -19,7 +18,7 @@ describe('reporters', function () {
});

it('does not exceed maximum callstack (issue: 1875)', function () {
assert(res.output.indexOf('RangeError') === -1, 'Threw RangeError');
expect(res.output, 'not to contain', 'RangeError');
});

it('contains spec src', function () {
Expand All @@ -29,7 +28,7 @@ describe('reporters', function () {
'```'
].join('\n');

assert(res.output.indexOf(src) !== -1, 'No assert found');
expect(res.output, 'to contain', src);
});
});

Expand All @@ -53,7 +52,7 @@ describe('reporters', function () {
fs.unlinkSync(tmpFile);

expectedOutput.forEach(function (line) {
assert(xml.indexOf(line) !== -1, 'XML did not contain ' + line);
expect(xml, 'to contain', line);
});

done(err);
Expand All @@ -72,7 +71,7 @@ describe('reporters', function () {
done(err);
return;
}
assert.equal(result.code, 0);
expect(result, 'to have passed');
done();
});
});
Expand All @@ -88,7 +87,7 @@ describe('reporters', function () {
done(err);
return;
}
assert.equal(result.code, 0);
expect(result, 'to have passed');
done();
});
});
Expand Down

0 comments on commit 92f50de

Please sign in to comment.