Commit 3212d47c authored by Mike Greiling's avatar Mike Greiling

fix eslint complaints

parent 2951ee9e
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
describe('create date object', () => { describe('create date object', () => {
describe('using dashes', () => { describe('using dashes', () => {
it('should instantiate the date object using integer params', () => { it('should instantiate the date object using integer params', () => {
spyOn(window, 'Date') spyOn(window, 'Date');
gl.utils.createDateObject('2016-11-12'); gl.utils.createDateObject('2016-11-12');
expect(window.Date).toHaveBeenCalledWith(2016, 10, 12); expect(window.Date).toHaveBeenCalledWith(2016, 10, 12);
}); });
...@@ -19,8 +19,8 @@ ...@@ -19,8 +19,8 @@
}); });
describe('using slashes', () => { describe('using slashes', () => {
it('should instantiate the date object using integer params', () => { it('should also instantiate the date object using integer params', () => {
spyOn(window, 'Date') spyOn(window, 'Date');
gl.utils.createDateObject('2016/08/02'); gl.utils.createDateObject('2016/08/02');
expect(window.Date).toHaveBeenCalledWith(2016, 7, 2); expect(window.Date).toHaveBeenCalledWith(2016, 7, 2);
}); });
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment