Skip to content

Commit

Permalink
feat: removed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dhuang612 committed Nov 11, 2020
1 parent 332b51e commit 1ec3d2d
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions test/reporters/base.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,42 +60,28 @@ describe('Base reporter', function() {

describe('showDiff', function() {
var err;
var failedStatus;
var expected;
beforeEach(function() {
err = new AssertionError({actual: 'foo', expected: 'bar'});
expected = "<div id='progress-bar.error'></div>";
});

it('should show diffs by default', function() {
var test = makeTest(err);
if (reporters.html) {
failedStatus = "<div id='progress-bar.error'></div>";
}

list([test]);

var errOut = stdout.join('\n');
expect(errOut, 'to match', /- actual/);
expect(errOut, 'to match', /\+ expected/);
if (failedStatus) {
assert.strictEqual(failedStatus, expected);
}
});

it("should show diffs if 'err.showDiff' is true", function() {
err.showDiff = true;
var test = makeTest(err);
if (reporters.html) {
failedStatus = "<div id='progress-bar.error'></div>";
}
list([test]);

var errOut = stdout.join('\n');
expect(errOut, 'to match', /- actual/);
expect(errOut, 'to match', /\+ expected/);
if (failedStatus) {
assert.strictEqual(failedStatus, expected);
}
});

it("should not show diffs if 'err.showDiff' is false", function() {
Expand Down

0 comments on commit 1ec3d2d

Please sign in to comment.