Skip to content
Snippets Groups Projects
Commit 7caab6c2 authored by Filipa Lacerda's avatar Filipa Lacerda
Browse files

Fix broken test in chrome

parent 383e6b55
No related branches found
No related tags found
No related merge requests found
Loading
@@ -11,7 +11,7 @@ describe('Custom Event Polyfill', () => {
Loading
@@ -11,7 +11,7 @@ describe('Custom Event Polyfill', () => {
expect(e.type).toEqual('foo'); expect(e.type).toEqual('foo');
expect(e.bubbles).toBe(false); expect(e.bubbles).toBe(false);
expect(e.cancelable).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', () => { it('should create a `CustomEvent` instance with a `details` object', () => {
Loading
@@ -29,7 +29,7 @@ describe('Custom Event Polyfill', () => {
Loading
@@ -29,7 +29,7 @@ describe('Custom Event Polyfill', () => {
expect(e.type).toEqual('bar'); expect(e.type).toEqual('bar');
expect(e.bubbles).toBe(true); expect(e.bubbles).toBe(true);
expect(e.cancelable).toBe(false); expect(e.cancelable).toBe(false);
expect(e.detail).toBe(undefined); expect(e.detail).toBeFalsy();
}); });
   
it('should create a `CustomEvent` instance with a `cancelable` boolean', () => { it('should create a `CustomEvent` instance with a `cancelable` boolean', () => {
Loading
@@ -38,6 +38,6 @@ describe('Custom Event Polyfill', () => {
Loading
@@ -38,6 +38,6 @@ describe('Custom Event Polyfill', () => {
expect(e.type).toEqual('bar'); expect(e.type).toEqual('bar');
expect(e.bubbles).toBe(false); expect(e.bubbles).toBe(false);
expect(e.cancelable).toBe(true); expect(e.cancelable).toBe(true);
expect(e.detail).toBe(undefined); expect(e.detail).toBeFalsy();
}); });
}); });
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment