chai/test/globalShould.js

14 lines
286 B
JavaScript
Raw Normal View History

suite('global should', function () {
var theGlobal = typeof window !== 'undefined' ? window : global;
2012-11-29 08:18:48 +00:00
test('works', function () {
theGlobal.should = chai.should();
try {
should.not.exist(undefined);
} finally {
delete theGlobal.should;
}
});
});