1
0
mirror of https://github.com/oceanprotocol-archive/squid-js.git synced 2024-02-02 15:31:51 +01:00

Fix search integration tests.

This commit is contained in:
Pedro Gutiérrez 2019-03-28 15:25:57 +01:00 committed by Pedro Gutiérrez
parent b38df5d5ed
commit f569957058
2 changed files with 3 additions and 4 deletions

View File

@ -57,14 +57,13 @@ describe("Search Asset", () => {
it("should be able to do a query to get a list of DDOs", async () => { it("should be able to do a query to get a list of DDOs", async () => {
const ddos: DDO[] = await ocean.assets.query({ const ddos: DDO[] = await ocean.assets.query({
text: `Test2${testHash}`,
page: 0, page: 0,
offset: 1, offset: 1,
query: { query: {
value: 1, text: `Test2${testHash}`,
}, },
sort: { sort: {
value: 1, text: 1,
}, },
}) })

View File

@ -1,5 +1,5 @@
export interface SearchQuery { export interface SearchQuery {
text: string text?: string
offset: number offset: number
page: number page: number
query: {[property: string]: string | number | string[] | number[]} query: {[property: string]: string | number | string[] | number[]}