From 4ce3d420e2bd3fbab38b7fbcae390e73a0dd0924 Mon Sep 17 00:00:00 2001 From: Max Edmands Date: Thu, 28 Nov 2013 13:45:10 -0800 Subject: [PATCH] test: make it possible to run utilities tests with --watch --- test/utilities.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/test/utilities.js b/test/utilities.js index 66a4bf909..0bee9c59e 100644 --- a/test/utilities.js +++ b/test/utilities.js @@ -1,6 +1,13 @@ describe('utilities', function () { var expect = chai.expect; + after(function() { + // Some clean-up so we can run tests in a --watch + delete chai.Assertion.prototype.eqqqual; + delete chai.Assertion.prototype.result; + delete chai.Assertion.prototype.doesnotexist; + }); + it('_obj', function () { var foo = 'bar' , test = expect(foo);