Skip to content

Commit

Permalink
Merge pull request #217 from demands/test_cleanup
Browse files Browse the repository at this point in the history
Make it possible to run utilities tests with --watch
  • Loading branch information
logicalparadox committed Nov 29, 2013
2 parents 1654808 + 4ce3d42 commit 0e560c6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/utilities.js
Original file line number Diff line number Diff line change
@@ -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);
Expand Down

0 comments on commit 0e560c6

Please sign in to comment.