UNPKG

parsleyjs

Version:

Validate your forms, frontend, without writing a single line of javascript!

17 lines (14 loc) 397 B
module.exports = function() { beforeEach(function() { this.sandbox = global.sinon.sandbox.create(); global.stub = this.sandbox.stub.bind(this.sandbox); global.spy = this.sandbox.spy.bind(this.sandbox); }); afterEach(function() { delete global.stub; delete global.spy; this.sandbox.restore(); }); require('./expect_warning')(); require('./dom_leak_check'); };