fix: complete jump-hop frontend wiring
This commit is contained in:
@@ -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',
|
||||
);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -21,6 +21,11 @@ const STAGE_ROUTE_ENTRIES = [
|
||||
['square-hole-agent-workspace', '/creation/square-hole/agent'],
|
||||
['square-hole-result', '/creation/square-hole/result'],
|
||||
['square-hole-runtime', '/runtime/square-hole'],
|
||||
['jump-hop-workspace', '/creation/jump-hop/workspace'],
|
||||
['jump-hop-generating', '/creation/jump-hop/generating'],
|
||||
['jump-hop-result', '/creation/jump-hop/result'],
|
||||
['jump-hop-gallery-detail', '/gallery/jump-hop/detail'],
|
||||
['jump-hop-runtime', '/runtime/jump-hop'],
|
||||
['bark-battle-generating', '/creation/bark-battle/generating'],
|
||||
['bark-battle-result', '/creation/bark-battle/result'],
|
||||
['bark-battle-runtime', '/runtime/bark-battle'],
|
||||
|
||||
Reference in New Issue
Block a user