mirror of
https://github.com/chaijs/chai
synced 2024-11-15 08:17:14 +00:00
a8f94bdcbb
- tests refactored as bdd instead of tdd - removed test/browser bootstraps - add karma-runner
15 lines
319 B
JavaScript
15 lines
319 B
JavaScript
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;
|
|
}
|
|
});
|
|
});
|