Skip to content

Commit

Permalink
remove layer_toc_actions
Browse files Browse the repository at this point in the history
  • Loading branch information
nreese committed Apr 22, 2020
1 parent 017d519 commit eff9c29
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 206 deletions.
198 changes: 0 additions & 198 deletions x-pack/plugins/maps/public/components/layer_toc_actions.js

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import React from 'react';
import { shallowWithIntl } from 'test_utils/enzyme_helpers';

import { LayerTocActions } from './layer_toc_actions';
import { TOCEntryActionsPopover } from './toc_entry_actions_popover';

let supportsFitToBounds;
const layerMock = {
Expand Down Expand Up @@ -39,13 +39,13 @@ const defaultProps = {
isUsingSearch: true,
};

describe('LayerTocActions', () => {
describe('TOCEntryActionsPopover', () => {
beforeEach(() => {
supportsFitToBounds = true;
});

test('is rendered', async () => {
const component = shallowWithIntl(<LayerTocActions {...defaultProps} />);
const component = shallowWithIntl(<TOCEntryActionsPopover {...defaultProps} />);

// Ensure all promises resolve
await new Promise(resolve => process.nextTick(resolve));
Expand All @@ -56,7 +56,7 @@ describe('LayerTocActions', () => {
});

test('should not show edit actions in read only mode', async () => {
const component = shallowWithIntl(<LayerTocActions {...defaultProps} isReadOnly={true} />);
const component = shallowWithIntl(<TOCEntryActionsPopover {...defaultProps} isReadOnly={true} />);

// Ensure all promises resolve
await new Promise(resolve => process.nextTick(resolve));
Expand All @@ -68,7 +68,7 @@ describe('LayerTocActions', () => {

test('should disable fit to data when supportsFitToBounds is false', async () => {
supportsFitToBounds = false;
const component = shallowWithIntl(<LayerTocActions {...defaultProps} />);
const component = shallowWithIntl(<TOCEntryActionsPopover {...defaultProps} />);

// Ensure all promises resolve
await new Promise(resolve => process.nextTick(resolve));
Expand Down

0 comments on commit eff9c29

Please sign in to comment.