Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Jérome Perrin
gitlab-ce
Commits
3212d47c
Commit
3212d47c
authored
Dec 22, 2016
by
Mike Greiling
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix eslint complaints
parent
2951ee9e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
spec/javascripts/datetime_utility_spec.js.es6
spec/javascripts/datetime_utility_spec.js.es6
+3
-3
No files found.
spec/javascripts/datetime_utility_spec.js.es6
View file @
3212d47c
...
@@ -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);
});
});
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment