Skip to content

Commit

Permalink
rename mock to mocks for eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
Bamieh committed Feb 12, 2020
1 parent 6ac8b4e commit d1238c4
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import React from 'react';
import { shallow } from 'enzyme';
import { Welcome } from './welcome';
// eslint-disable-next-line @kbn/eslint/no-restricted-paths
import { telemetryPluginMock } from '../../../../../../../plugins/telemetry/public/telemetry.mock';
import { telemetryPluginMock } from '../../../../../../../plugins/telemetry/public/mocks';

jest.mock('../../kibana_services', () => ({
getServices: () => ({
addBasePath: (path: string) => `root${path}`,
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/* eslint-disable dot-notation */
import { mockTelemetryNotifications, mockTelemetryService } from '../../telemetry.mock';
import { mockTelemetryNotifications, mockTelemetryService } from '../../mocks';

describe('onSetOptInClick', () => {
it('sets setting successfully and removes banner', async () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

/* eslint-disable dot-notation */
import { TelemetrySender } from './telemetry_sender';
import { mockTelemetryService } from '../telemetry.mock';
import { mockTelemetryService } from '../mocks';
import { REPORT_INTERVAL_MS, LOCALSTORAGE_KEY } from '../../common/constants';

class LocalStorageMock implements Partial<Storage> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

/* eslint-disable dot-notation */
import { mockTelemetryService } from '../telemetry.mock';
import { mockTelemetryService } from '../mocks';

const mockSubtract = jest.fn().mockImplementation(() => {
return {
Expand Down

0 comments on commit d1238c4

Please sign in to comment.