mirror of
https://github.com/stablyai/orca.git
synced 2026-09-30 16:02:56 +00:00
test(mobile): drop the race helpers the surviving case no longer uses
Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
This commit is contained in:
@@ -5,7 +5,6 @@ import { MobileWebNativeChatAuthority } from './mobile-web-native-chat-authority
|
||||
import { MobileWebWorkspaceAuthority } from './mobile-web-workspace-authority'
|
||||
|
||||
describe('mobile web mutation authorization races', () => {
|
||||
|
||||
it('rejects native-chat persistence when the tab lookup loses its workspace authority', async () => {
|
||||
const workspace = workspaceAuthority()
|
||||
const chat = new MobileWebNativeChatAuthority((length) => new Uint8Array(length).fill(5))
|
||||
@@ -76,11 +75,3 @@ function client(sendRequest: ReturnType<typeof vi.fn>): RpcClient {
|
||||
function success(result: unknown) {
|
||||
return { ok: true as const, result }
|
||||
}
|
||||
|
||||
function failure() {
|
||||
return { ok: false as const, error: { code: 'unexpected', message: 'unexpected' } }
|
||||
}
|
||||
|
||||
function callsFor(sendRequest: ReturnType<typeof vi.fn>, method: string) {
|
||||
return sendRequest.mock.calls.filter(([candidate]) => candidate === method)
|
||||
}
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
{ "extends": "./tsconfig.json", "compilerOptions": { "paths": { "@orca/expo-mobile-web-shell": ["./packages/expo-mobile-web-shell/src/index.ts"], "@orca/expo-mobile-web-shell/*": ["./packages/expo-mobile-web-shell/src/*"] } } }
|
||||
Reference in New Issue
Block a user