1
0
mirror of https://github.com/oceanprotocol/ocean.js.git synced 2024-11-26 20:39:05 +01:00

remove some stuff

This commit is contained in:
Ahmed Ali 2020-06-29 09:46:25 +02:00
parent 11bced5fca
commit 2025527f97
3 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,6 @@ export class Provider extends Instantiable {
document: JSON.stringify(document), document: JSON.stringify(document),
publisherAddress: account.getId() publisherAddress: account.getId()
} }
console.log(args)
try { try {
const response = await this.ocean.utils.fetch.post( const response = await this.ocean.utils.fetch.post(
this.getEncryptEndpoint(), this.getEncryptEndpoint(),

View File

@ -2,6 +2,7 @@ import { TestContractHandler } from '../TestContractHandler'
import { DataTokens } from '../../src/datatokens/Datatokens' import { DataTokens } from '../../src/datatokens/Datatokens'
import { Ocean } from '../../src/ocean/Ocean' import { Ocean } from '../../src/ocean/Ocean'
import config from './config' import config from './config'
import { assert } from 'console'
// import Accounts from "../../src/ocean/Account" // import Accounts from "../../src/ocean/Account"
@ -88,11 +89,12 @@ describe('Marketplace flow', () => {
it('Alice publishes a dataset', async () => { it('Alice publishes a dataset', async () => {
ddo = await ocean.assets.create(asset, alice, [], tokenAddress) ddo = await ocean.assets.create(asset, alice, [], tokenAddress)
assert(ddo != null)
}) })
// it('Alice mints 100 tokens', async () => { it('Alice mints 100 tokens', async () => {
// await datatoken.mint(tokenAddress, alice.getId(), tokenAmount) await datatoken.mint(tokenAddress, alice.getId(), tokenAmount)
// }) })
// it('Marketplace posts asset for sale', async () => { // it('Marketplace posts asset for sale', async () => {
// const config = new Config() // const config = new Config()

View File

@ -90,7 +90,6 @@ describe('MetadataStore', () => {
it('should query metadata by text', async () => { it('should query metadata by text', async () => {
spy.on(metadataStore.fetch, 'get', () => reponsify(getResults([new DDO()]))) spy.on(metadataStore.fetch, 'get', () => reponsify(getResults([new DDO()])))
const result = await metadataStore.queryMetadataByText(query) const result = await metadataStore.queryMetadataByText(query)
console.log(result)
assert.typeOf(result.results, 'array') assert.typeOf(result.results, 'array')
assert.lengthOf(result.results, 1) assert.lengthOf(result.results, 1)