Skip to content

Commit

Permalink
Fix route test - caused by schema reindex URL change
Browse files Browse the repository at this point in the history
  • Loading branch information
cee-chen committed Jun 21, 2021
1 parent 57dcd76 commit baf2ab6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,13 +76,13 @@ describe('getReindexJobRoute', () => {

it('should format org path', () => {
expect(getReindexJobRoute(SOURCE_ID, REINDEX_ID, true)).toEqual(
`/sources/${SOURCE_ID}/schema_errors/${REINDEX_ID}`
`/sources/${SOURCE_ID}/schemas/${REINDEX_ID}`
);
});

it('should format user path', () => {
expect(getReindexJobRoute(SOURCE_ID, REINDEX_ID, false)).toEqual(
`/p/sources/${SOURCE_ID}/schema_errors/${REINDEX_ID}`
`/p/sources/${SOURCE_ID}/schemas/${REINDEX_ID}`
);
});
});

0 comments on commit baf2ab6

Please sign in to comment.