mirror of
https://github.com/stablyai/orca.git
synced 2026-09-29 00:02:56 +00:00
style(mobile): format native-host-task-operation-contracts test
Claude-Session: https://claude.ai/code/session_01JNnE9qzUZMMnqpZWCqM3nb
This commit is contained in:
@@ -21,14 +21,12 @@ const projectTarget = {
|
||||
|
||||
describe('native host task operation contracts', () => {
|
||||
it('rejects a non-array checks payload instead of crashing the checks list', async () => {
|
||||
const sendRequest = vi
|
||||
.fn<RpcClient['sendRequest']>()
|
||||
.mockResolvedValue({
|
||||
id: 'test',
|
||||
_meta: { runtimeId: 'host' },
|
||||
ok: true,
|
||||
result: { error: 'rate limited' }
|
||||
})
|
||||
const sendRequest = vi.fn<RpcClient['sendRequest']>().mockResolvedValue({
|
||||
id: 'test',
|
||||
_meta: { runtimeId: 'host' },
|
||||
ok: true,
|
||||
result: { error: 'rate limited' }
|
||||
})
|
||||
|
||||
await expect(
|
||||
nativeHostTaskItemFileOperations(client(sendRequest)).refreshChecks(itemTarget, 'sha')
|
||||
|
||||
Reference in New Issue
Block a user