Skip to content

Commit

Permalink
chore(NA): move missing canvas plugin tests out of __tests__ folder (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
mistic authored Jan 12, 2021
1 parent 49753ae commit 200c61a
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 33 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

import { mount } from 'enzyme';
import React from 'react';
import { JestContext } from '../../../test/context_jest';
import { getScrubber as scrubber, getPageControlsCenter as center } from '../../../test/selectors';
import { Footer } from '../footer';
import { JestContext } from '../../test/context_jest';
import { getScrubber as scrubber, getPageControlsCenter as center } from '../../test/selectors';
import { Footer } from './footer';

jest.mock('../../../supported_renderers');
jest.mock('../../supported_renderers');

describe('<Footer />', () => {
test('null workpad renders nothing', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

import { mount } from 'enzyme';
import React from 'react';
import { JestContext } from '../../../test/context_jest';
import { JestContext } from '../../test/context_jest';
import {
getPageControlsPrevious as previous,
getPageControlsCenter as current,
getPageControlsNext as next,
} from '../../../test/selectors';
import { PageControls } from '../page_controls';
} from '../../test/selectors';
import { PageControls } from './page_controls';

jest.mock('../../../supported_renderers');
jest.mock('../../supported_renderers');

describe('<PageControls />', () => {
test('null workpad renders nothing', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

import { mount } from 'enzyme';
import React from 'react';
import { JestContext } from '../../../test/context_jest';
import { PagePreview } from '../page_preview';
import { getRenderedElement as element } from '../../../test/selectors';
import { JestContext } from '../../test/context_jest';
import { PagePreview } from './page_preview';
import { getRenderedElement as element } from '../../test/selectors';

jest.mock('../../../supported_renderers');
jest.mock('../../supported_renderers');

describe('<PagePreview />', () => {
test('null workpad renders nothing', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,14 @@

import { mount } from 'enzyme';
import React from 'react';
import { JestContext } from '../../../test/context_jest';
import { Scrubber } from '../scrubber';
import { JestContext } from '../../test/context_jest';
import { Scrubber } from './scrubber';
import {
getScrubberSlideContainer as container,
getRenderedElement as element,
} from '../../../test/selectors';
} from '../../test/selectors';

jest.mock('../../../supported_renderers');
jest.mock('../../supported_renderers');

describe('<Scrubber />', () => {
test('null workpad renders nothing', () => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@

import { mount } from 'enzyme';
import React from 'react';
import { JestContext } from '../../../../test/context_jest';
import { JestContext } from '../../../test/context_jest';
import {
getAutoplayTextField as input,
getAutoplayCheckbox as checkbox,
getAutoplaySubmit as submit,
} from '../../../../test/selectors';
import { AutoplaySettings } from '../autoplay_settings';
} from '../../../test/selectors';
import { AutoplaySettings } from './autoplay_settings';

jest.mock('../../../../supported_renderers');
jest.mock('../../../supported_renderers');

describe('<AutoplaySettings />', () => {
const wrapper = mount(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,18 @@

import { mount, ReactWrapper } from 'enzyme';
import React from 'react';
import { JestContext } from '../../../../test/context_jest';
import { takeMountedSnapshot } from '../../../../test';
import { openSettings, selectMenuItem } from '../../../../test/interactions';
import { JestContext } from '../../../test/context_jest';
import { takeMountedSnapshot } from '../../../test';
import { openSettings, selectMenuItem } from '../../../test/interactions';
import {
getSettingsTrigger as trigger,
getPopover as popover,
getPortal as portal,
getContextMenuItems as menuItems,
} from '../../../../test/selectors';
import { Settings } from '../settings';
} from '../../../test/selectors';
import { Settings } from './settings';

jest.mock('../../../../supported_renderers');
jest.mock('../../../supported_renderers');
jest.mock(`@elastic/eui/lib/components/form/form_row/make_id`, () => () => `generated-id`);
jest.mock('@elastic/eui/lib/services/accessibility', () => {
return {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@

import { mount } from 'enzyme';
import React from 'react';
import { JestContext } from '../../../../test/context_jest';
import { getToolbarCheckbox as checkbox } from '../../../../test/selectors';
import { ToolbarSettings } from '../toolbar_settings';
import { JestContext } from '../../../test/context_jest';
import { getToolbarCheckbox as checkbox } from '../../../test/selectors';
import { ToolbarSettings } from './toolbar_settings';

jest.mock('../../../../supported_renderers');
jest.mock('../../../supported_renderers');

describe('<ToolbarSettings />', () => {
const wrapper = mount(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@

import { mount } from 'enzyme';
import React from 'react';
import { JestContext } from '../../../test/context_jest';
import { Title } from '../title';
import { JestContext } from '../../test/context_jest';
import { Title } from './title';

jest.mock('../../../supported_renderers');
jest.mock('../../supported_renderers');

describe('<Title />', () => {
test('null workpad renders nothing', () => {
Expand Down

0 comments on commit 200c61a

Please sign in to comment.