Merge pull request #2803 from mhoyer/master

Support global 'Should' and 'window.Should' for should.js
This commit is contained in:
Masahiro Wakame
2014-09-15 23:17:29 +09:00
2 changed files with 7 additions and 0 deletions
+3
View File
@@ -39,6 +39,9 @@ should.not.exist(false);
should.not.exist('');
should.not.exist({});
Should.exist(null);
window.Should.exist(null);
user.should.have.property('pets').with.lengthOf(4);
user.pets.should.have.lengthOf(4);
user.should.be.of.type('object').and.have.property('name', 'tj');
+4
View File
@@ -112,6 +112,10 @@ interface Internal extends ShouldInternal {
}
declare var should: Internal;
declare var Should: Internal;
interface Window {
Should: Internal;
}
declare module "should" {
export = should;