mirror of
https://github.com/chaijs/chai
synced 2024-11-15 00:07:11 +00:00
13 lines
286 B
JavaScript
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;
|
|
}
|
|
});
|
|
});
|