mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-06 12:54:20 +01:00
fix(schedules): open report links in place and route schedule notifications to the run report
This commit is contained in:
1 parent
7fbb7555b2
commit
3d8c2f5b5e
18 files changed
+278
-84
No files matched your search
@@ -506,7 +506,12 @@ describe.skipIf(SHIPPED_OPENCODE_BIN === null)('ocm-manager plugin against the s
|
||||
expect(apiRequests).toHaveLength(1)
|
||||
const request = JSON.parse(apiRequests[0] as string) as { auth: string; body: string }
|
||||
expect(request.auth).toBe('Bearer test-token')
|
||||
expect(JSON.parse(request.body)).toEqual({ title: 'Storm watch', body: 'Formation odds crossed 40%', priority: 'high' })
|
||||
expect(JSON.parse(request.body)).toEqual({
|
||||
title: 'Storm watch',
|
||||
body: 'Formation odds crossed 40%',
|
||||
priority: 'high',
|
||||
sessionId: expect.stringMatching(/^ses_/),
|
||||
})
|
||||
expect(toolResults.some((output) => output.includes('Notification sent: 1 delivered, 0 failed.'))).toBe(true)
|
||||
} finally {
|
||||
api.server.close()
|
||||
|
||||
Reference in new issue
Block a user