test: make it possible to run utilities tests with --watch

This commit is contained in:
Max Edmands 2013-11-28 13:45:10 -08:00
parent 1654808e59
commit 4ce3d420e2

View file

@ -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);