Skip to content
Open
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
29 changes: 1 addition & 28 deletions test/ERC721Mintable.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const ERC721Mintable = artifacts.require('ERC721Mintable')
const truffleAssert = require('truffle-assertions');
//const truffleAssert = require('truffle-assertions');

contract('ERC721Mintable', (accounts) => {
const account_one = accounts[0]
Expand Down Expand Up @@ -39,31 +39,4 @@ contract('ERC721Mintable', (accounts) => {

})


// Moving this test to ERC721Ownable.spec.js
describe('have ownership properties', () => {
beforeEach(async () => {
this.contract = await ERC721Mintable.new({ from: account_one })
await this.contract.mint(account_one, 1, { from: account_one})
})

it('should fail when minting and sender is not contract owner', async () => {
let failed = false

try {
await this.contract.mint(account_one, 1, { from: account_two })
} catch(e) {
failed = true
}

assert.equal(failed, true, 'Minting did not fail when msg is not contract owner')
})

it('should return contract owner', async () => {
const owner = await this.contract.owner()
assert.equal(owner, account_one, 'Incorrect contract owner')
})


})
})