Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions kickstart/test/Campaign.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 () => {
Expand Down
12 changes: 6 additions & 6 deletions lottery/test/Lottery.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,21 +65,21 @@ 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 () => {
try {
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 () => {
Expand Down