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

fix tests lint

This commit is contained in:
arsenyjin 2020-06-22 13:21:51 +02:00
parent 24c8a87623
commit 8193838a96
4 changed files with 11 additions and 7 deletions

View File

@ -51,7 +51,11 @@ export class Assets extends Instantiable {
* @param {Account} publisher Publisher account.
* @return {Promise<String>}
*/
public createSimpleAsset(datatoken: DataTokens, publisher: Account, blob: string): Promise<string> {
public createSimpleAsset(
datatoken: DataTokens,
publisher: Account,
blob: string
): Promise<string> {
const publisherURI = this.ocean.brizo.getURI()
// const jsonBlob = { t: 0, url: publisherURI }
return datatoken.create(JSON.stringify(blob), publisher)

View File

@ -45,7 +45,7 @@ describe('Marketplace flow', () => {
datatokensTemplate.abi,
web3
)
const config = new Config()
const ocean = await Ocean.getInstance(config)
@ -67,4 +67,4 @@ describe('Marketplace flow', () => {
await ocean.assets.download(ddo, blob, transactionId, bob)
})
})
})
})

View File

@ -15,7 +15,6 @@ describe('Rinkeby test', () => {
const tokenAmount = 100
const blob = 'http://localhost:8030/api/v1/provider/services'
describe('#test', () => {
it('Initialize Ocean contracts v3', async () => {
contracts = new TestContractHandler(
@ -25,7 +24,7 @@ describe('Rinkeby test', () => {
factory.bytecode,
web3
)
const privateKey = 'PRIVATE_KEY'
account = web3.eth.accounts.privateKeyToAccount('0x' + privateKey)
web3.eth.accounts.wallet.add(account)
@ -48,4 +47,4 @@ describe('Rinkeby test', () => {
await datatoken.mint(tokenAddress, account.address, tokenAmount)
})
})
})
})

View File

@ -24,7 +24,8 @@ describe('DataTokens', () => {
factory.abi,
datatokensTemplate.abi,
datatokensTemplate.bytecode,
factory.bytecode
factory.bytecode,
web3
)
await contracts.getAccounts()
minter = contracts.accounts[0]