mirror of
https://github.com/stablyai/orca.git
synced 2026-11-16 02:47:34 +00:00
* test: remove 124 low-value tests * test: remove 125 low-value tests --------- Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
26 lines
658 B
TypeScript
26 lines
658 B
TypeScript
import { describe, expect, it } from 'vitest'
|
|
import { getLocalhostWorktreeRouteKey } from './localhost-worktree-labels'
|
|
|
|
describe('localhost worktree labels', () => {
|
|
it('keeps route keys unique for different ports in the same worktree', () => {
|
|
const route = {
|
|
projectName: 'Snap Studio',
|
|
worktreeName: 'analytics',
|
|
repoId: 'repo-1',
|
|
worktreeId: 'wt-analytics'
|
|
}
|
|
|
|
expect(
|
|
getLocalhostWorktreeRouteKey({
|
|
...route,
|
|
targetUrl: 'http://localhost:5173/'
|
|
})
|
|
).not.toBe(
|
|
getLocalhostWorktreeRouteKey({
|
|
...route,
|
|
targetUrl: 'http://localhost:7777/'
|
|
})
|
|
)
|
|
})
|
|
})
|