mirror of
https://github.com/oceanprotocol-archive/squid-js.git
synced 2024-02-02 15:31:51 +01:00
Merge pull request #203 from oceanprotocol/fix/search-page
Fix page numbers in search queries
This commit is contained in:
commit
f35878be73
@ -21,13 +21,12 @@ before_script:
|
||||
- ganache-cli --port 18545 > ganache-cli.log &
|
||||
- git clone https://github.com/oceanprotocol/barge
|
||||
- cd barge
|
||||
- export AQUARIUS_VERSION=v0.2.1
|
||||
- export BRIZO_VERSION=v0.3.4
|
||||
- export KEEPER_VERSION=v0.9.0
|
||||
- export AQUARIUS_VERSION=v0.2.2
|
||||
- export BRIZO_VERSION=v0.3.5
|
||||
- export KEEPER_VERSION=v0.9.1
|
||||
- export KEEPER_OWNER_ROLE_ADDRESS="0xe2DD09d719Da89e5a3D0F2549c7E24566e947260"
|
||||
- bash -x start_ocean.sh --latest --no-pleuston --local-spree-node 2>&1 > start_ocean.log &
|
||||
- cd ..
|
||||
- ./scripts/unlock-spree-accounts.sh 2>&1 > /dev/null &
|
||||
|
||||
script:
|
||||
- export ETH_PORT=18545; npm run test:cover
|
||||
|
@ -65,7 +65,7 @@ describe("Search Asset", () => {
|
||||
|
||||
it("should be able to do a query to get a list of DDOs", async () => {
|
||||
const {results: ddos} = await ocean.assets.query({
|
||||
page: 0,
|
||||
page: 1,
|
||||
offset: 1,
|
||||
query: {
|
||||
text: [`Test2${testHash}`],
|
||||
|
@ -276,7 +276,7 @@ export class OceanAssets extends Instantiable {
|
||||
public async search(text: string) {
|
||||
return this.ocean.aquarius.queryMetadataByText({
|
||||
text,
|
||||
page: 0,
|
||||
page: 1,
|
||||
offset: 100,
|
||||
query: {
|
||||
value: 1,
|
||||
|
@ -18,7 +18,7 @@ describe("Aquarius", () => {
|
||||
|
||||
const query = {
|
||||
offset: 100,
|
||||
page: 0,
|
||||
page: 1,
|
||||
query: {
|
||||
value: 1,
|
||||
},
|
||||
@ -56,7 +56,7 @@ describe("Aquarius", () => {
|
||||
|
||||
const query = {
|
||||
offset: 100,
|
||||
page: 0,
|
||||
page: 1,
|
||||
query: {
|
||||
value: 1,
|
||||
},
|
||||
|
@ -49,7 +49,7 @@ describe("Ocean", () => {
|
||||
it("should search for assets", async () => {
|
||||
const query = {
|
||||
offset: 100,
|
||||
page: 0,
|
||||
page: 1,
|
||||
query: {
|
||||
value: 1,
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user