chai/test/globalShould.js

16 lines
319 B
JavaScript
Raw Normal View History

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