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:
parent
b38df5d5ed
commit
f569957058
@ -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,
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
|
@ -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[]}
|
||||||
|
Loading…
Reference in New Issue
Block a user