From ca61ffe985d46c7e78300c0032c1015f4ba75d01 Mon Sep 17 00:00:00 2001 From: Nicolas Wagner Date: Wed, 9 May 2018 00:08:37 -0400 Subject: [PATCH] fix(test): err msg --- tests/integration/contracts.test.js | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/tests/integration/contracts.test.js b/tests/integration/contracts.test.js index f83b66c..a29b3cd 100644 --- a/tests/integration/contracts.test.js +++ b/tests/integration/contracts.test.js @@ -29,7 +29,7 @@ describe('Contracts', () => { other = web3.eth.accounts[2] klerosPOCData = { - timesPerPeriod: [1, 1, 1, 1, 1], + timesPerPeriod: [1, 1, 1, 1, 1], // activation, draw, vote, appeal, execution (seconds) account: other, value: 0 } @@ -47,8 +47,8 @@ describe('Contracts', () => { describe('KlerosPOC', async () => { it('deploys arbitrator with contractInstance', async () => { const newKlerosPOC = await KlerosPOC.deploy( - '', - '', + '', // rngAddress param + '', // pnkAddress param klerosPOCData.timesPerPeriod, klerosPOCData.account, klerosPOCData.value, @@ -65,18 +65,18 @@ describe('Contracts', () => { expect(contractInstance.address).toEqual(newKlerosPOC.address) }) it('initializing contract with bad address fails', async () => { - const newKlerosPOC = new KlerosPOC(provider, '0xfakeaddress') + const newKlerosPOC = new KlerosPOC(provider, 0x0) // bad address param try { // Check that we can bootstrap with address await newKlerosPOC.loadContract() } catch (err) { - expect(err.message).toEqual(errorConstants.UNABLE_TO_LOAD_CONTRACT) + expect(err.message).toEqual(errorConstants.CONTRACT_INSTANCE_NOT_SET) } }) it('setContractInstance throws with undefined parameters', async () => { const newKlerosPOC = await KlerosPOC.deploy( - '', - '', + '', // rngAddress param + '', // pnkAddress param klerosPOCData.timesPerPeriod, klerosPOCData.account, klerosPOCData.value,