Commit ffdbe9f0 authored by Chuck LeDuc Díaz's avatar Chuck LeDuc Díaz
Browse files

improve Identity test coverage slightly, put in stubs for missing tests.

parent f2f7c371
Pipeline #68815541 passed with stage
in 4 minutes and 11 seconds
...@@ -20,7 +20,6 @@ contract('1.1. Identity', (accounts) => { ...@@ -20,7 +20,6 @@ contract('1.1. Identity', (accounts) => {
}) })
it('Should send gas to the wallet', () => { it('Should send gas to the wallet', () => {
expect(parity.isBlockchainRunning()).to.not.be.equal(null)
web3.eth.sendTransaction({ from: accounts[0], to: walletAddress, value: web3.utils.toWei('10', 'ether') }) web3.eth.sendTransaction({ from: accounts[0], to: walletAddress, value: web3.utils.toWei('10', 'ether') })
}) })
...@@ -38,6 +37,16 @@ contract('1.1. Identity', (accounts) => { ...@@ -38,6 +37,16 @@ contract('1.1. Identity', (accounts) => {
}) })
}) })
it('Should test the Identity contract payable function', async () => {
web3.eth.sendTransaction({ from: accounts[1], to: identityContract.address, value: web3.utils.toWei('1', 'ether') })
})
xit('Should change the owner', async () => {
})
xit('Should change the owner back', async () => {
})
it('Should work as expected : setData and getData', (done) => { it('Should work as expected : setData and getData', (done) => {
identityContract.setData(key, value) identityContract.setData(key, value)
.then(async (tx) => { .then(async (tx) => {
...@@ -80,4 +89,7 @@ contract('1.1. Identity', (accounts) => { ...@@ -80,4 +89,7 @@ contract('1.1. Identity', (accounts) => {
done() done()
}) })
}) })
xit('Should act as a proxy for OPERATION_CREATE', (done) => {
})
}) })
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment