mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-11-16 19:36:54 +00:00
13 lines
550 B
TypeScript
13 lines
550 B
TypeScript
import { expect, it } from 'vitest'
|
|
|
|
import { rosterSourceStatus } from './roster-source-status'
|
|
|
|
it('does not report stale cached profiles as a reachable or signed-in gateway', () => {
|
|
expect(rosterSourceStatus({ profiles: ['default'], error: 'OAuth expired', needsSignIn: true })).toEqual({
|
|
reachable: false,
|
|
error: 'OAuth expired',
|
|
needsSignIn: true
|
|
})
|
|
expect(rosterSourceStatus({ profiles: ['default'], error: 'timed out' }).reachable).toBe(false)
|
|
expect(rosterSourceStatus({ profiles: ['default'] }).reachable).toBe(true)
|
|
})
|