diff options
Diffstat (limited to 'js/tests/commonSpec.js')
-rwxr-xr-x | js/tests/commonSpec.js | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/js/tests/commonSpec.js b/js/tests/commonSpec.js new file mode 100755 index 0000000..ccc19f1 --- /dev/null +++ b/js/tests/commonSpec.js @@ -0,0 +1,20 @@ +describe('Common', function () { + it('RATCHET namespace is defined', function () { + expect(typeof RATCHET !== 'undefined').toBe(true); + }); + + it('window.CustomEvent exists', function () { + expect(typeof window.CustomEvent !== 'undefined').toBe(true); + }); + + it('RATCHET.getBrowserCapabilities returns an object', function () { + var result = RATCHET.getBrowserCapabilities; + expect(typeof result === 'object').toBe(true); + }); + + it('RATCHET.getTransitionEnd returns string', function () { + var result = RATCHET.getTransitionEnd; + expect(typeof result === 'string').toBe(true); + expect(result.length > 0).toBe(true); + }); +}); |