Skip to content

Commit

Permalink
Fix original filter tests
Browse files Browse the repository at this point in the history
  • Loading branch information
bidoubiwa committed Nov 28, 2022
1 parent 9ddf65d commit 6410aa7
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tests/task.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Admin' }])(

expect(cancelationTask.type).toEqual(TaskTypes.TASK_CANCELATION)
expect(cancelationTask.details.originalFilter).toEqual(
`uids=${addDocumentsTask.taskUid}`
`?uids=${addDocumentsTask.taskUid}`
)
})

Expand Down Expand Up @@ -456,7 +456,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Admin' }])(
const task = await client.waitForTask(enqueuedTask.taskUid)

expect(task.type).toEqual(TaskTypes.TASK_CANCELATION)
expect(task.details?.originalFilter).toEqual('indexUids=movies_test')
expect(task.details?.originalFilter).toEqual('?indexUids=movies_test')
})

// cancel: type
Expand All @@ -473,7 +473,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Admin' }])(

expect(task.type).toEqual(TaskTypes.TASK_CANCELATION)
expect(task.details?.originalFilter).toEqual(
'types=documentAdditionOrUpdate%2CdocumentDeletion'
'?types=documentAdditionOrUpdate%2CdocumentDeletion'
)
})

Expand All @@ -488,7 +488,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Admin' }])(

expect(task.type).toEqual(TaskTypes.TASK_CANCELATION)
expect(task.details?.originalFilter).toEqual(
'statuses=enqueued%2Cprocessing'
'?statuses=enqueued%2Cprocessing'
)
})

Expand Down Expand Up @@ -645,7 +645,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Admin' }])(

expect(deleteTask.type).toEqual(TaskTypes.TASK_DELETION)
expect(deleteTask.details?.originalFilter).toEqual(
'types=documentAdditionOrUpdate%2CdocumentDeletion'
'?types=documentAdditionOrUpdate%2CdocumentDeletion'
)
})

Expand All @@ -660,7 +660,7 @@ describe.each([{ permission: 'Master' }, { permission: 'Admin' }])(

expect(task.type).toEqual(TaskTypes.TASK_DELETION)
expect(task.details?.originalFilter).toEqual(
'statuses=enqueued%2Cprocessing'
'?statuses=enqueued%2Cprocessing'
)
})

Expand Down

0 comments on commit 6410aa7

Please sign in to comment.