Skip to content

Commit

Permalink
fix integ tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pgayvallet committed Feb 25, 2020
1 parent 318fa14 commit 4fdb39d
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ describe('SavedObjects /_migrate endpoint', () => {

it('calls runMigrations on the migrator with rerun=true when accessed', async () => {
await kbnTestServer.request
.post(root, '/api/saved_objects/_migrate')
.post(root, '/internal/saved_objects/_migrate')
.send({})
.expect(200);

Expand All @@ -46,14 +46,14 @@ describe('SavedObjects /_migrate endpoint', () => {

it('calls runMigrations multiple time when multiple access', async () => {
await kbnTestServer.request
.post(root, '/api/saved_objects/_migrate')
.post(root, '/internal/saved_objects/_migrate')
.send({})
.expect(200);

expect(migratorInstanceMock.runMigrations).toHaveBeenCalledTimes(1);

await kbnTestServer.request
.post(root, '/api/saved_objects/_migrate')
.post(root, '/internal/saved_objects/_migrate')
.send({})
.expect(200);

Expand Down

0 comments on commit 4fdb39d

Please sign in to comment.