mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 18:37:24 +00:00
test(cloud): malformed cursor test reads the personal route
This commit is contained in:
@@ -191,9 +191,9 @@ describe('activity window and pagination', () => {
|
||||
})
|
||||
|
||||
it('ignores a malformed cursor or limit rather than failing', async () => {
|
||||
const { admin, put, activity } = await setup()
|
||||
await put('org', 'TEAM_VAR', VALUES[1]!, admin)
|
||||
const res = await activity(admin, 'view=team&cursor=%27%20OR%201%3D1&limit=-5')
|
||||
const { member, put, activity } = await setup()
|
||||
await put('personal', 'MY_VAR', VALUES[1]!, member)
|
||||
const res = await activity(member, 'view=personal&cursor=%27%20OR%201%3D1&limit=-5')
|
||||
expect(res.status).toBe(200)
|
||||
expect(res.body.events).toHaveLength(1)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user