Skip to content
Prev Previous commit
Next Next commit
Fix tests
  • Loading branch information
BrunoQuaresma committed Feb 9, 2024
commit d9581d0d7beef239b4351018e06b19f94d2964e3
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ test("Create template from starter template", async () => {
);
await waitFor(() => expect(API.createTemplate).toBeCalledTimes(1));
expect(router.state.location.pathname).toEqual(
`/templates/${MockTemplate.name}`,
`/templates/${MockTemplate.name}/files`,
);
expect(API.createTemplateVersion).toHaveBeenCalledWith(MockOrganization.id, {
example_id: "aws-windows",
Expand Down Expand Up @@ -138,7 +138,7 @@ test("Create template from duplicating a template", async () => {
);
await waitFor(() => {
expect(router.state.location.pathname).toEqual(
`/templates/${MockTemplate.name}`,
`/templates/${MockTemplate.name}/files`,
);
});
});