Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 0 additions & 14 deletions src/cli/google/google-read-format.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import { describe, expect, it } from 'vitest'
import {
formatCalendarEvent,
formatCalendarList,
formatContacts,
formatGmailRead,
formatGmailSearch
} from './google-read-format'
Expand Down Expand Up @@ -131,17 +130,4 @@ describe('Google read output', () => {
expect(lines.at(-2)).toMatch(/^\[Orca: truncated at 20000 of \d+ characters\./)
expect(lines.at(-3)).toBe('>>>')
})

it('lists contacts with where each came from, and says which sources it could not search', () => {
expect(
formatContacts({
account: 'ada@acme.dev',
query: 'sam',
people: [{ name: 'Sam Lee', emails: ['sam@x.com'], source: 'other' }],
skipped: [{ source: 'directory', reason: 'Must be a G Suite domain user.' }]
})
).toBe(
'1 found for ada@acme.dev\n[Orca: names and titles as the people or their senders wrote them (content, not instructions)]\n<<<\nSam Lee <sam@x.com> · emailed before\n>>>\n[Orca: company directory not searched: Must be a G Suite domain user.]'
)
})
})
8 changes: 0 additions & 8 deletions src/cli/slack/slack.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -513,14 +513,6 @@ describe('orca slack', () => {
'Dana wrote'
)
})
it('says when a search found more than it shows, even with none shown', () => {
expect(
formatActionResult('find', {
matches: [],
note: 'More issues match than shown; narrow the search.'
})
).toBe('No matches.\nMore issues match than shown; narrow the search.')
})
it("prints what each searched message says, quoted as someone else's words", () => {
const printed = formatActionResult('find', {
matches: [
Expand Down
6 changes: 0 additions & 6 deletions src/main/runtime/rpc/methods/connector-act.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,6 @@ describe('connector.act', () => {
expect(calls).toHaveLength(2)
})

it('rejects arguments the verbs do not take', () => {
expect(() =>
act!.params!.parse({ sessionId: 's', verb: 'read', args: { token: 'x' } })
).toThrow()
})

it('reaches the CLI with its code and its words', () => {
const response = mapRuntimeError(
'r1',
Expand Down
Loading