diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2016-12-09 12:13:54 +0000 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2016-12-09 12:13:54 +0000 |
commit | 383e6b552e4b3ae9b2fdf9c1401dca2aef8e98e7 (patch) | |
tree | f9be87c8a6f87a50a018f884a297bfc3bd8f9773 | |
parent | 67c2e741195083b9c9d5d5f741c7909d22bc988b (diff) | |
download | gitlab-ce-383e6b552e4b3ae9b2fdf9c1401dca2aef8e98e7.tar.gz |
Fix broken test
-rw-r--r-- | spec/javascripts/lib/utils/custom_event_polyfill_spec.js.es6 | 6 |
1 files 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 ad51367bb32..1c5bf8887f8 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(null); + expect(e.detail).toBe(undefined); }); 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(null); + expect(e.detail).toBe(undefined); }); 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(null); + expect(e.detail).toBe(undefined); }); }); |