Skip to content

Commit 772629b

Browse files
authored
Merge branch 'main' into description-formatting-update
2 parents dc0a6ca + 28ef47f commit 772629b

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

frontend/__tests__/unit/pages/EditModule.test.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,9 @@ describe('EditModulePage', () => {
110110

111111
await waitFor(() => {
112112
expect(mockUpdateModule).toHaveBeenCalled()
113-
expect(mockPush).toHaveBeenCalledWith('/my/mentorship/programs/test-program')
113+
expect(mockPush).toHaveBeenCalledWith(
114+
'/my/mentorship/programs/test-program/modules/test-module'
115+
)
114116
})
115117
})
116118

frontend/src/app/my/mentorship/programs/[programKey]/modules/[moduleKey]/edit/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ const EditModulePage = () => {
119119
variant: 'solid',
120120
timeout: 3000,
121121
})
122-
router.push(`/my/mentorship/programs/${programKey}`)
122+
router.push(`/my/mentorship/programs/${programKey}/modules/${moduleKey}`)
123123
} catch (err) {
124124
handleAppError(err)
125125
}

0 commit comments

Comments
 (0)