Skip to content

Commit bf21656

Browse files
committed
refactor: move stuff around for clarity
1 parent 7cf446f commit bf21656

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

site/src/pages/CreateWorkspacePage/useWorkspaceDuplication.test.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,9 @@ async function performNavigation(
4141
router: ReturnType<typeof createMemoryRouter>,
4242
) {
4343
await waitFor(() => expect(button).not.toBeDisabled());
44-
4544
await userEvent.click(button);
46-
await waitFor(() => {
45+
46+
return waitFor(() => {
4747
expect(router.state.location.pathname).toEqual(
4848
`/templates/${MockWorkspace.template_name}/workspace`,
4949
);

0 commit comments

Comments
 (0)