Fix broken test in chrome
This commit is contained in:
parent
383e6b552e
commit
7caab6c2ae
1 changed files with 3 additions and 3 deletions
|
@ -11,7 +11,7 @@ describe('Custom Event Polyfill', () => {
|
|||
expect(e.type).toEqual('foo');
|
||||
expect(e.bubbles).toBe(false);
|
||||
expect(e.cancelable).toBe(false);
|
||||
expect(e.detail).toBe(undefined);
|
||||
expect(e.detail).toBeFalsy();
|
||||
});
|
||||
|
||||
it('should create a `CustomEvent` instance with a `details` object', () => {
|
||||
|
@ -29,7 +29,7 @@ describe('Custom Event Polyfill', () => {
|
|||
expect(e.type).toEqual('bar');
|
||||
expect(e.bubbles).toBe(true);
|
||||
expect(e.cancelable).toBe(false);
|
||||
expect(e.detail).toBe(undefined);
|
||||
expect(e.detail).toBeFalsy();
|
||||
});
|
||||
|
||||
it('should create a `CustomEvent` instance with a `cancelable` boolean', () => {
|
||||
|
@ -38,6 +38,6 @@ describe('Custom Event Polyfill', () => {
|
|||
expect(e.type).toEqual('bar');
|
||||
expect(e.bubbles).toBe(false);
|
||||
expect(e.cancelable).toBe(true);
|
||||
expect(e.detail).toBe(undefined);
|
||||
expect(e.detail).toBeFalsy();
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue