From 1ec3d2d6119347fe709abe79b22bfb68855a731f Mon Sep 17 00:00:00 2001 From: dhuang612 Date: Wed, 11 Nov 2020 13:50:09 -0500 Subject: [PATCH] feat: removed tests --- test/reporters/base.spec.js | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/test/reporters/base.spec.js b/test/reporters/base.spec.js index 5a9868e70e..dcc500d728 100644 --- a/test/reporters/base.spec.js +++ b/test/reporters/base.spec.js @@ -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 = "
"; }); it('should show diffs by default', function() { var test = makeTest(err); - if (reporters.html) { - failedStatus = "
"; - } + 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 = "
"; - } 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() {