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

Enable no-console ESLint rule for tests

See merge request gitlab-org/gitlab-ce!20812
This commit is contained in:
Mike Greiling 2018-07-31 19:03:19 +00:00
commit 93c7b6c51a
4 changed files with 4 additions and 4 deletions

View file

@ -30,7 +30,6 @@ rules:
jasmine/no-spec-dupes:
- warn
- branch
no-console: off
prefer-arrow-callback: off
import/no-unresolved:
- error

View file

@ -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();

View file

@ -30,7 +30,7 @@ describe('Page component', () => {
done();
})
.catch((error) => {
console.error(error);
done.fail(error);
});
});

View file

@ -1,4 +1,6 @@
/* 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';