From 7caab6c2ae6e8063472a224d846f9157c07dc53f Mon Sep 17 00:00:00 2001 From: Filipa Lacerda <filipa@gitlab.com> Date: Tue, 13 Dec 2016 11:04:43 +0000 Subject: [PATCH] Fix broken test in chrome --- .../javascripts/lib/utils/custom_event_polyfill_spec.js.es6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/javascripts/lib/utils/custom_event_polyfill_spec.js.es6 b/spec/javascripts/lib/utils/custom_event_polyfill_spec.js.es6 index 1c5bf8887f8..3645dd70c55 100644 --- a/spec/javascripts/lib/utils/custom_event_polyfill_spec.js.es6 +++ b/spec/javascripts/lib/utils/custom_event_polyfill_spec.js.es6 @@ -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(); }); }); -- GitLab