Skip to content

Commit

Permalink
add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
0x3bfc committed Jun 11, 2020
1 parent 0c8087f commit 5608d0a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unit/Factory.Test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,14 @@ contract('Factory test', async accounts => {
'DataTokenTemplate: Invalid minter, zero address'
)
})

it('should get the token count', async () => {
const currentTokenIndex = await factory.getCurrentTokenIndex()
assert.equal(currentTokenIndex.toNumber(), 1)
})

it('should get the token template', async () => {
const tokenTemplate = await factory.getTokenTemplate()
assert.equal(template.address, tokenTemplate)
})
})

0 comments on commit 5608d0a

Please sign in to comment.