Skip to content

Commit

Permalink
Add tests on details
Browse files Browse the repository at this point in the history
  • Loading branch information
bidoubiwa committed Nov 3, 2022
1 parent c354641 commit d24879e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/clients/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
KeysResults,
TasksResults,
EnqueuedTaskObject,
CancelTasksQuery,
} from '../types'
import { HttpRequests } from '../http-requests'
import { TaskClient, Task } from '../task'
Expand Down
2 changes: 2 additions & 0 deletions tests/task.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -375,6 +375,8 @@ describe.each([{ permission: 'Master' }, { permission: 'Admin' }])(

expect(task.type).toEqual('taskCancelation')
expect(task.details?.originalQuery).toContain('uid=')
expect(task.details?.matchedTasks).toBeDefined()
expect(task.details?.canceledTasks).toBeDefined()
})

// cancel: indexUid
Expand Down

0 comments on commit d24879e

Please sign in to comment.