Skip to content

Commit

Permalink
Fixed a few typos in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sarbogast committed Aug 24, 2017
1 parent ae98827 commit 5a42586
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/ChainListExceptions.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ contract('ChainList', function(accounts) {
});
}).then(function(receipt) {
return chainListInstance.buyArticle(2, {
from: seller,
from: buyer,
value: web3.toWei(articlePrice, "ether")
});
}).then(assert.fail)
Expand Down
2 changes: 1 addition & 1 deletion test/ChainListHappyPath.js
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ contract('ChainList', function(accounts) {
articleId = data[1].toNumber();
assert.equal(articleId, 2, "article id must be 2");

return chainListInstance.articles.call(articleId);
return chainListInstance.articles(articleId);
}).then(function(data) {
assert.equal(data[0].toNumber(), 2, "article id must be 2");
assert.equal(data[1], seller, "seller must be " + seller);
Expand Down

0 comments on commit 5a42586

Please sign in to comment.