blob: ccc19f1f703e4f3079efb24a06871da55bdf8ac4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
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);
});
});
|