fix: complete jump-hop frontend wiring

This commit is contained in:
kdletters
2026-05-22 06:19:59 +08:00
parent 7b8cb82bf0
commit 1756b83789
10 changed files with 132 additions and 2 deletions

View File

@@ -17,4 +17,37 @@ describe('appPageRoutes', () => {
'/profile/feedback',
);
});
it('resolves jump-hop creation, gallery and runtime routes', () => {
expect(resolveSelectionStageFromPath('/creation/jump-hop/workspace')).toBe(
'jump-hop-workspace',
);
expect(resolveSelectionStageFromPath('/creation/jump-hop/generating')).toBe(
'jump-hop-generating',
);
expect(resolveSelectionStageFromPath('/creation/jump-hop/result')).toBe(
'jump-hop-result',
);
expect(resolveSelectionStageFromPath('/gallery/jump-hop/detail')).toBe(
'jump-hop-gallery-detail',
);
expect(resolveSelectionStageFromPath('/runtime/jump-hop')).toBe(
'jump-hop-runtime',
);
expect(resolvePathForSelectionStage('jump-hop-workspace')).toBe(
'/creation/jump-hop/workspace',
);
expect(resolvePathForSelectionStage('jump-hop-generating')).toBe(
'/creation/jump-hop/generating',
);
expect(resolvePathForSelectionStage('jump-hop-result')).toBe(
'/creation/jump-hop/result',
);
expect(resolvePathForSelectionStage('jump-hop-gallery-detail')).toBe(
'/gallery/jump-hop/detail',
);
expect(resolvePathForSelectionStage('jump-hop-runtime')).toBe(
'/runtime/jump-hop',
);
});
});