Skip to content

Commit 80b98fb

Browse files
committed
add test case for re-registration of unregistered dapp
1 parent 1eb2c4c commit 80b98fb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/dapp_reg.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -283,5 +283,11 @@ contract("DappReg", accounts => {
283283
() => dappReg.setDappOwner(id, accounts[0], { from: owner }),
284284
"revert",
285285
);
286+
287+
// should not allow re-registering an unregistered dapp
288+
await assertThrowsAsync(
289+
() => dappReg.register(id, { value: web3.toWei("1", "ether"), from: owner }),
290+
"revert",
291+
);
286292
});
287293
});

0 commit comments

Comments
 (0)