From 242a87569baaab6be6918d9d32c368bcc0c412ee Mon Sep 17 00:00:00 2001 From: Roman Storm Date: Thu, 1 Aug 2019 00:34:22 -0700 Subject: [PATCH] clean up tests --- test/Mixer.test.js | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/test/Mixer.test.js b/test/Mixer.test.js index 687f859..16a0b39 100644 --- a/test/Mixer.test.js +++ b/test/Mixer.test.js @@ -220,16 +220,10 @@ contract('Mixer', accounts => { }) it('should prevent double spend', async () => { - const deposit = generateDeposit() await tree.insert(deposit.commitment) await mixer.deposit(toBN(deposit.commitment.toString()), { value, from: sender }) - const deposit2 = generateDeposit() - await tree.insert(deposit2.commitment) - await mixer.deposit(toBN(deposit2.commitment.toString()), { value, from: sender }) - - const { root, path_elements, path_index } = await tree.path(0) const input = stringifyBigInts({ @@ -251,16 +245,10 @@ contract('Mixer', accounts => { }) it('should prevent double spend with overflow', async () => { - const deposit = generateDeposit() await tree.insert(deposit.commitment) await mixer.deposit(toBN(deposit.commitment.toString()), { value, from: sender }) - const deposit2 = generateDeposit() - await tree.insert(deposit2.commitment) - await mixer.deposit(toBN(deposit2.commitment.toString()), { value, from: sender }) - - const { root, path_elements, path_index } = await tree.path(0) const input = stringifyBigInts({