DRY
This commit is contained in:
parent
582e0eb1dd
commit
516b5691e8
1 changed files with 2 additions and 10 deletions
|
@ -748,11 +748,7 @@ describe("/rows", () => {
|
||||||
query: { equal: { age: 40 } },
|
query: { equal: { age: 40 } },
|
||||||
})
|
})
|
||||||
|
|
||||||
const response = await request
|
const response = await config.api.viewV2.search(createViewResponse._id!)
|
||||||
.get(`/api/v2/views/${createViewResponse._id}/search`)
|
|
||||||
.set(config.defaultHeaders())
|
|
||||||
.expect("Content-Type", /json/)
|
|
||||||
.expect(200)
|
|
||||||
|
|
||||||
expect(response.body.rows).toHaveLength(5)
|
expect(response.body.rows).toHaveLength(5)
|
||||||
expect(response.body).toEqual({
|
expect(response.body).toEqual({
|
||||||
|
@ -839,11 +835,7 @@ describe("/rows", () => {
|
||||||
sort: sortParams,
|
sort: sortParams,
|
||||||
})
|
})
|
||||||
|
|
||||||
const response = await request
|
const response = await config.api.viewV2.search(createViewResponse._id!)
|
||||||
.get(`/api/v2/views/${createViewResponse._id}/search`)
|
|
||||||
.set(config.defaultHeaders())
|
|
||||||
.expect("Content-Type", /json/)
|
|
||||||
.expect(200)
|
|
||||||
|
|
||||||
expect(response.body.rows).toHaveLength(4)
|
expect(response.body.rows).toHaveLength(4)
|
||||||
expect(response.body).toEqual({
|
expect(response.body).toEqual({
|
||||||
|
|
Loading…
Reference in a new issue