Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
poffdeluxe committed Dec 10, 2019
1 parent 3d7bd59 commit 0b42650
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ import {
httpServerMock,
loggingServiceMock,
} from 'src/core/server/mocks';
// import { workpadWithGroupAsElement } from '../../../../../legacy/plugins/canvas/__tests__/fixtures/workpads';
// import { CanvasWorkpad } from '../../../../../legacy/plugins/canvas/types';

const mockRouteContext = ({
core: {
Expand All @@ -43,7 +41,7 @@ describe('GET custom element', () => {
routeHandler = router.get.mock.calls[0][1];
});

it(`returns 200 when the workpad is found`, async () => {
it(`returns 200 when the custom element is found`, async () => {
const request = httpServerMock.createKibanaRequest({
method: 'get',
path: 'api/canvas/custom-element/123',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,10 @@ describe('PUT custom element', () => {
);
});

it(`returns not found if existing workpad is not found`, async () => {
it(`returns not found if existing custom element is not found`, async () => {
const request = httpServerMock.createKibanaRequest({
method: 'put',
path: 'api/canvas/workpad/some-id',
path: 'api/canvas/custom-element/some-id',
params: {
id: 'not-found',
},
Expand Down

0 comments on commit 0b42650

Please sign in to comment.