fix: refactor sign.js and related tests (#1243)

* fix: refactor sign.js and related tests

* fix: remove unused dep

* fix: update package.json correctly
This commit is contained in:
Matt Condon
2018-08-29 02:35:44 -07:00
committed by Nicolás Venturo
parent 1c0532455a
commit 1c57637fd5
5 changed files with 121 additions and 149 deletions

View File

@ -1,5 +1,3 @@
const { hashMessage } = require('./helpers/sign');
const AutoIncrementing = artifacts.require('AutoIncrementingImpl');
require('chai')
@ -7,8 +5,8 @@ require('chai')
.should();
const EXPECTED = [1, 2, 3, 4];
const KEY1 = hashMessage('key1');
const KEY2 = hashMessage('key2');
const KEY1 = web3.sha3('key1');
const KEY2 = web3.sha3('key2');
contract('AutoIncrementing', function ([_, owner]) {
beforeEach(async function () {