Skip to content

Commit

Permalink
Fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
cqliu1 committed Jun 14, 2023
1 parent e684a98 commit 7b10065
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
3 changes: 2 additions & 1 deletion x-pack/plugins/canvas/server/routes/workpad/create.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,8 @@ describe('POST workpad', () => {
const routerDeps = getMockedRouterDeps();
initializeCreateWorkpadRoute(routerDeps);

routeHandler = routerDeps.router.post.mock.calls[0][1];
routeHandler =
routerDeps.router.versioned.post.mock.results[0].value.addVersion.mock.calls[0][1];
});

it(`returns 200 when the workpad is created`, async () => {
Expand Down
6 changes: 4 additions & 2 deletions x-pack/plugins/canvas/server/routes/workpad/update.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,8 @@ describe('PUT workpad', () => {
const routerDeps = getMockedRouterDeps();
initializeUpdateWorkpadRoute(routerDeps);

routeHandler = routerDeps.router.versioned.put.mock.results[0].value.addVersion.mock.calls[0][1]];
routeHandler =
routerDeps.router.versioned.put.mock.results[0].value.addVersion.mock.calls[0][1];
});

afterEach(() => {
Expand Down Expand Up @@ -133,7 +134,8 @@ describe('update assets', () => {
const routerDeps = getMockedRouterDeps();
initializeUpdateWorkpadAssetsRoute(routerDeps);

routeHandler = routerDeps.router.versioned.put.mock.results[0].value.addVersion.mock.calls[0][1];
routeHandler =
routerDeps.router.versioned.put.mock.results[0].value.addVersion.mock.calls[0][1];
});

afterEach(() => {
Expand Down

0 comments on commit 7b10065

Please sign in to comment.