feat: publish CodexPi contest snapshot
Some checks are pending
Qualité / tests (push) Waiting to run

This commit is contained in:
CodexPi
2026-11-14 20:23:59 +01:00
commit 995b17a6e2
295 changed files with 36803 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import assert from 'node:assert/strict'
import test from 'node:test'
import { routeHref, routeView } from '../src/appRoutes.ts'
test('deep links restore the requested view',()=>{
assert.equal(routeView('?view=activity'),'activity')
assert.equal(routeView('?view=workspace&project=p1&conversation=c1'),'workspace')
assert.equal(routeView('?view=unknown'),'company')
})
test('workspace links retain their project, conversation and tab',()=>{
assert.equal(routeHref('workspace',{project:{id:'p1'},conversationId:'c1',tab:'changes'}),'/?view=workspace&project=p1&conversation=c1&tab=changes')
})
test('global machine links do not depend on a selected project',()=>{
assert.equal(routeHref('remote',{project:{id:'p1'}}),'/?view=remote')
})