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

Fix linter errors.

This commit is contained in:
Pedro Gutiérrez 2019-05-08 23:38:12 +02:00 committed by Pedro Gutiérrez
parent 33a9939b47
commit 6a5db2b314
2 changed files with 9 additions and 9 deletions

View File

@ -10,7 +10,7 @@ import config from "../config"
use(spies)
const reponsify = async data => ({ok: true, json: () => Promise.resolve(data)})
const reponsify = async (data) => ({ok: true, json: () => Promise.resolve(data)})
describe("Aquarius", () => {
@ -44,7 +44,7 @@ describe("Aquarius", () => {
} as SearchQuery
it("should query metadata", async () => {
spy.on(ocean.utils.fetch, 'post', () => reponsify(getResults([new DDO()])))
spy.on(ocean.utils.fetch, "post", () => reponsify(getResults([new DDO()])))
const result = await aquarius.queryMetadata(query)
assert.typeOf(result.results, "array")
@ -56,7 +56,7 @@ describe("Aquarius", () => {
it("should query metadata and return real ddo", async () => {
spy.on(ocean.utils.fetch, 'post', () => reponsify(getResults([new DDO()])))
spy.on(ocean.utils.fetch, "post", () => reponsify(getResults([new DDO()])))
const result = await aquarius.queryMetadata(query)
assert.typeOf(result.results, "array")
@ -81,7 +81,7 @@ describe("Aquarius", () => {
it("should query metadata by text", async () => {
spy.on(ocean.utils.fetch, 'get', () => reponsify(getResults([new DDO()])))
spy.on(ocean.utils.fetch, "get", () => reponsify(getResults([new DDO()])))
const result = await aquarius.queryMetadataByText(query)
assert.typeOf(result.results, "array")
@ -93,7 +93,7 @@ describe("Aquarius", () => {
it("should query metadata and return real ddo", async () => {
spy.on(ocean.utils.fetch, 'get', () => reponsify(getResults([new DDO()])))
spy.on(ocean.utils.fetch, "get", () => reponsify(getResults([new DDO()])))
const result = await aquarius.queryMetadataByText(query)
assert.typeOf(result.results, "array")
@ -112,7 +112,7 @@ describe("Aquarius", () => {
id: did.getId(),
})
spy.on(ocean.utils.fetch, 'post', () => reponsify(ddo))
spy.on(ocean.utils.fetch, "post", () => reponsify(ddo))
const result: DDO = await aquarius.storeDDO(ddo)
assert(result)
@ -129,8 +129,8 @@ describe("Aquarius", () => {
id: did.getId(),
})
spy.on(ocean.utils.fetch, 'post', () => reponsify(ddo))
spy.on(ocean.utils.fetch, 'get', () => reponsify(ddo))
spy.on(ocean.utils.fetch, "post", () => reponsify(ddo))
spy.on(ocean.utils.fetch, "get", () => reponsify(ddo))
const storageResult: DDO = await aquarius.storeDDO(ddo)
assert(storageResult)