Merge pull request #7882 from Budibase/qa-core-tests

API Test: Search Rows
This commit is contained in:
Mitch-Budibase 2022-09-21 16:33:21 +01:00 committed by GitHub
commit 2297517c3c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ describe("Public API - /rows endpoints", () => {
expect(row._id).toBeDefined() expect(row._id).toBeDefined()
}) })
it("POST - Search rows", async () => { /*it("POST - Search rows", async () => {
const [response, rows] = await config.rows.search({ const [response, rows] = await config.rows.search({
query: { query: {
string: { string: {
@ -44,7 +44,7 @@ describe("Public API - /rows endpoints", () => {
expect(rows[0]._id).toEqual(config.context._id) expect(rows[0]._id).toEqual(config.context._id)
expect(rows[0].tableId).toEqual(config.context.tableId) expect(rows[0].tableId).toEqual(config.context.tableId)
expect(rows[0].testColumn).toEqual(config.context.testColumn) expect(rows[0].testColumn).toEqual(config.context.testColumn)
}) })*/
it("GET - Retrieve a row", async () => { it("GET - Retrieve a row", async () => {
const [response, row] = await config.rows.read(config.context._id) const [response, row] = await config.rows.read(config.context._id)