Files
orca/src/shared/localhost-worktree-labels.test.ts
T
OrcaWinandOrcaWin e280eb0734 test: remove 125 low-value tests (#39513)
* test: remove 124 low-value tests

* test: remove 125 low-value tests

---------

Co-authored-by: OrcaWin <293788423+OrcaWin@users.noreply.github.com>
2026-11-07 06:59:05 -08:00

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/'
})
)
})
})