diff --git a/kickstart/test/Campaign.test.js b/kickstart/test/Campaign.test.js index 3e71096e..9aa94571 100644 --- a/kickstart/test/Campaign.test.js +++ b/kickstart/test/Campaign.test.js @@ -56,10 +56,10 @@ describe('Campaigns', () => { value: '5', from: accounts[1] }); - assert(false); - } catch (err) { - assert(err); + } catch (e) { + return; } + assert(false); }); it('allows a manager to make a payment request', async () => { diff --git a/lottery/test/Lottery.test.js b/lottery/test/Lottery.test.js index f836088f..add0b8b6 100644 --- a/lottery/test/Lottery.test.js +++ b/lottery/test/Lottery.test.js @@ -65,10 +65,10 @@ describe('Lottery Contract', () => { from: accounts[0], value: 0 }); - assert(false); - } catch (err) { - assert(err); + } catch (e) { + return; } + assert(false); }); it('only manager can call pickWinner', async () => { @@ -76,10 +76,10 @@ describe('Lottery Contract', () => { await lottery.methods.pickWinner().send({ from: accounts[1] }); - assert(false); - } catch (err) { - assert(err); + } catch (e) { + return; } + assert(false); }); it('sends money to the winner and resets the players array', async () => {