Commit 93c7b6c5 authored by Mike Greiling's avatar Mike Greiling

Merge branch 'winh-lint-console-tests' into 'master'

Enable no-console ESLint rule for tests

See merge request gitlab-org/gitlab-ce!20812
parents 400925c4 7a870e40
......@@ -30,7 +30,6 @@ rules:
jasmine/no-spec-dupes:
- warn
- branch
no-console: off
prefer-arrow-callback: off
import/no-unresolved:
- error
......
......@@ -162,7 +162,6 @@ describe('getTimeframeWindowFrom', () => {
const timeframe = datetimeUtility.getTimeframeWindowFrom(startDate, 5);
expect(timeframe.length).toBe(5);
timeframe.forEach((timeframeItem, index) => {
console.log(timeframeItem);
expect(timeframeItem.getFullYear() === mockTimeframe[index].getFullYear()).toBe(true);
expect(timeframeItem.getMonth() === mockTimeframe[index].getMonth()).toBe(true);
expect(timeframeItem.getDate() === mockTimeframe[index].getDate()).toBeTruthy();
......
......@@ -30,7 +30,7 @@ describe('Page component', () => {
done();
})
.catch((error) => {
console.error(error);
done.fail(error);
});
});
......
/* 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 'vendor/jasmine-jquery';
......
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