chai/test/globalShould.js
2012-11-29 03:18:48 -05:00

13 lines
286 B
JavaScript

suite('global should', function () {
var theGlobal = typeof window !== 'undefined' ? window : global;
test('works', function () {
theGlobal.should = chai.should();
try {
should.not.exist(undefined);
} finally {
delete theGlobal.should;
}
});
});