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
Léo-Paul Géneau
gitlab-ce
Commits
7a870e40
Commit
7a870e40
authored
Jul 24, 2018
by
Winnie Hellmann
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Enable no-console ESLint rule for tests
parent
f6d13ef5
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
spec/javascripts/.eslintrc.yml
spec/javascripts/.eslintrc.yml
+0
-1
spec/javascripts/datetime_utility_spec.js
spec/javascripts/datetime_utility_spec.js
+0
-1
spec/javascripts/pdf/page_spec.js
spec/javascripts/pdf/page_spec.js
+1
-1
spec/javascripts/test_bundle.js
spec/javascripts/test_bundle.js
+3
-1
No files found.
spec/javascripts/.eslintrc.yml
View file @
7a870e40
...
@@ -30,7 +30,6 @@ rules:
...
@@ -30,7 +30,6 @@ rules:
jasmine/no-spec-dupes
:
jasmine/no-spec-dupes
:
-
warn
-
warn
-
branch
-
branch
no-console
:
off
prefer-arrow-callback
:
off
prefer-arrow-callback
:
off
import/no-unresolved
:
import/no-unresolved
:
-
error
-
error
...
...
spec/javascripts/datetime_utility_spec.js
View file @
7a870e40
...
@@ -162,7 +162,6 @@ describe('getTimeframeWindowFrom', () => {
...
@@ -162,7 +162,6 @@ describe('getTimeframeWindowFrom', () => {
const
timeframe
=
datetimeUtility
.
getTimeframeWindowFrom
(
startDate
,
5
);
const
timeframe
=
datetimeUtility
.
getTimeframeWindowFrom
(
startDate
,
5
);
expect
(
timeframe
.
length
).
toBe
(
5
);
expect
(
timeframe
.
length
).
toBe
(
5
);
timeframe
.
forEach
((
timeframeItem
,
index
)
=>
{
timeframe
.
forEach
((
timeframeItem
,
index
)
=>
{
console
.
log
(
timeframeItem
);
expect
(
timeframeItem
.
getFullYear
()
===
mockTimeframe
[
index
].
getFullYear
()).
toBe
(
true
);
expect
(
timeframeItem
.
getFullYear
()
===
mockTimeframe
[
index
].
getFullYear
()).
toBe
(
true
);
expect
(
timeframeItem
.
getMonth
()
===
mockTimeframe
[
index
].
getMonth
()).
toBe
(
true
);
expect
(
timeframeItem
.
getMonth
()
===
mockTimeframe
[
index
].
getMonth
()).
toBe
(
true
);
expect
(
timeframeItem
.
getDate
()
===
mockTimeframe
[
index
].
getDate
()).
toBeTruthy
();
expect
(
timeframeItem
.
getDate
()
===
mockTimeframe
[
index
].
getDate
()).
toBeTruthy
();
...
...
spec/javascripts/pdf/page_spec.js
View file @
7a870e40
...
@@ -30,7 +30,7 @@ describe('Page component', () => {
...
@@ -30,7 +30,7 @@ describe('Page component', () => {
done
();
done
();
})
})
.
catch
((
error
)
=>
{
.
catch
((
error
)
=>
{
console
.
error
(
error
);
done
.
fail
(
error
);
});
});
});
});
...
...
spec/javascripts/test_bundle.js
View file @
7a870e40
/* eslint-disable jasmine/no-global-setup, jasmine/no-unsafe-spy, no-underscore-dangle */
/* eslint-disable
jasmine/no-global-setup, jasmine/no-unsafe-spy, no-underscore-dangle, no-console
*/
import
$
from
'
jquery
'
;
import
$
from
'
jquery
'
;
import
'
vendor/jasmine-jquery
'
;
import
'
vendor/jasmine-jquery
'
;
...
...
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