Skip to content
This repository has been archived by the owner on Feb 26, 2024. It is now read-only.

Commit

Permalink
Modify tests for web3 1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cgewecke committed Apr 9, 2018
1 parent 6c8ff33 commit 92d02c2
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions test/scenarios/contract_names/test_imports.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ describe("Contract names", function() {
// the right thing.
return deployed.specialValue.call();
}).then(function(value) {
assert.equal(value, 1337, "Somehow the wrong contract was deployed, because we don't have the correct value");
assert.equal(parseInt(value), 1337, "Somehow the wrong contract was deployed, because we don't have the correct value");
done();
}).catch(done);
});
Expand Down Expand Up @@ -104,7 +104,7 @@ describe("Contract names", function() {
// the right thing.
return deployed.specialValue.call();
}).then(function(value) {
assert.equal(value, 1337, "Somehow the wrong contract was deployed, because we don't have the correct value");
assert.equal(parseInt(value), 1337, "Somehow the wrong contract was deployed, because we don't have the correct value");
done();
}).catch(done);
});
Expand Down
2 changes: 1 addition & 1 deletion test/scenarios/happy_path/happypath.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("Happy path (truffle unbox)", function() {

before("set up sandbox", function(done) {
this.timeout(10000);
Box.sandbox("default", function(err, conf) {
Box.sandbox("default#web3-one", function(err, conf) {
if (err) return done(err);
config = conf;
config.network = "development";
Expand Down
2 changes: 1 addition & 1 deletion test/scenarios/migrations/parameters.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ describe("Migration Parameters", function() {

before("set up sandbox", function(done) {
this.timeout(10000);
Box.sandbox("default", function(err, conf) {
Box.sandbox("default#web3-one", function(err, conf) {
if (err) return done(err);
config = conf;
config.logger = logger;
Expand Down

0 comments on commit 92d02c2

Please sign in to comment.