eeb6174de0
- ASP.NET Core 10 Backend (JWT Auth, Agent config API) - Vue 3 Frontend (Dashboard, Team, Agents, Config Editor) - PostgreSQL Database - Docker Compose setup - Mission Control Dashboard redesign
19 lines
620 B
TypeScript
19 lines
620 B
TypeScript
import { describe, it, expect } from 'vitest'
|
|
import { setActivePinia, createPinia } from 'pinia'
|
|
import { useOperationsStore } from '../src/stores/operations'
|
|
|
|
describe('operations store', () => {
|
|
it('initializes with fallback data', () => {
|
|
setActivePinia(createPinia())
|
|
const store = useOperationsStore()
|
|
expect(store.snapshot.metrics.activeAgents).toBeGreaterThan(0)
|
|
expect(store.snapshot.runtime.runtime).toBe('OpenClaw')
|
|
})
|
|
|
|
it('has routing targets', () => {
|
|
setActivePinia(createPinia())
|
|
const store = useOperationsStore()
|
|
expect(store.routing.length).toBeGreaterThan(0)
|
|
})
|
|
})
|