Skip to content

Commit

Permalink
asster.equals -> assert.equal
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Sep 19, 2017
1 parent aaccb6d commit f3fc88a
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions test/contract.js
Original file line number Diff line number Diff line change
Expand Up @@ -1412,7 +1412,7 @@ describe('contract', function () {
});
});

it('should return an error when returned string is 0x', function () {
it('should return an error when returned string is 0x', function (done) {
var provider = new FakeIpcProvider();
var eth = new Eth(provider);
var signature = 'getStr()';
Expand All @@ -1433,11 +1433,12 @@ describe('contract', function () {
contract.methods.getStr().call({from: address2}, function (err, result) {
// console.log(err, result)
assert.isTrue(err instanceof Error);
done();
});

});

it('should return an empty string when 0x0', function () {
it('should return an empty string when 0x0', function (done) {
var provider = new FakeIpcProvider();
var eth = new Eth(provider);
var signature = 'getStr()';
Expand All @@ -1456,7 +1457,8 @@ describe('contract', function () {
provider.injectResult('0x0');

contract.methods.getStr().call({from: address2}, function (err, result) {
assert.equals(result, '');
assert.equal(result, '');
done();
});

});
Expand Down

0 comments on commit f3fc88a

Please sign in to comment.