uport-project/uport-identity

`can not remove other owner yet' tests for adding owner instead

jessicagmarshall opened this issue · 0 comments

it("can not remove other owner yet", async function () {
types = ['address', 'address', 'address']
params = [user2, proxy.address, user1]
p = await signPayload(user2, sender, txRelay, identityManager.address,
'addOwner', types, params, lw, keyFromPw)
res = await txRelay.getAddress.call(p.data)
assert.equal(res, user2, "Address is not first parameter")
tx = await txRelay.relayMetaTx(p.v, p.r, p.s, p.dest, p.data, {from: sender})
assert.isUndefined(tx.receipt.logs[0], "Generated logs, thus owner was removed")
})

The 'can not remove other owner yet' test actually tests for not being able to add another owner yet.