From 8193838a967bc51d4f5c9a84ee511140a6d3ece4 Mon Sep 17 00:00:00 2001 From: arsenyjin Date: Mon, 22 Jun 2020 13:21:51 +0200 Subject: [PATCH] fix tests lint --- src/ocean/Assets.ts | 6 +++++- test/integration/Marketplaceflow.test.ts | 4 ++-- test/integration/Rinkeby.test.ts | 5 ++--- test/unit/Datatokens.test.ts | 3 ++- 4 files changed, 11 insertions(+), 7 deletions(-) diff --git a/src/ocean/Assets.ts b/src/ocean/Assets.ts index 0f28a644..8f5b40d4 100644 --- a/src/ocean/Assets.ts +++ b/src/ocean/Assets.ts @@ -51,7 +51,11 @@ export class Assets extends Instantiable { * @param {Account} publisher Publisher account. * @return {Promise} */ - public createSimpleAsset(datatoken: DataTokens, publisher: Account, blob: string): Promise { + public createSimpleAsset( + datatoken: DataTokens, + publisher: Account, + blob: string + ): Promise { const publisherURI = this.ocean.brizo.getURI() // const jsonBlob = { t: 0, url: publisherURI } return datatoken.create(JSON.stringify(blob), publisher) diff --git a/test/integration/Marketplaceflow.test.ts b/test/integration/Marketplaceflow.test.ts index 78e96926..0070b82b 100644 --- a/test/integration/Marketplaceflow.test.ts +++ b/test/integration/Marketplaceflow.test.ts @@ -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) }) }) -}) \ No newline at end of file +}) diff --git a/test/integration/Rinkeby.test.ts b/test/integration/Rinkeby.test.ts index e8abacbb..fdfe5ce3 100644 --- a/test/integration/Rinkeby.test.ts +++ b/test/integration/Rinkeby.test.ts @@ -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) }) }) -}) \ No newline at end of file +}) diff --git a/test/unit/Datatokens.test.ts b/test/unit/Datatokens.test.ts index cd15c644..2df7bfce 100644 --- a/test/unit/Datatokens.test.ts +++ b/test/unit/Datatokens.test.ts @@ -24,7 +24,8 @@ describe('DataTokens', () => { factory.abi, datatokensTemplate.abi, datatokensTemplate.bytecode, - factory.bytecode + factory.bytecode, + web3 ) await contracts.getAccounts() minter = contracts.accounts[0]