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

Commit

Permalink
Undo changes made in last two commits
Browse files Browse the repository at this point in the history
  • Loading branch information
eggplantzzz committed Dec 21, 2018
1 parent 48ea2b9 commit 6f126d5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
9 changes: 7 additions & 2 deletions packages/truffle-box/box.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ var Box = {

sandbox: function(name, callback) {
var self = this;
let urlSuffix;
if (typeof name === "function") {
callback = name;
name = "default";
Expand All @@ -38,8 +39,12 @@ var Box = {
if (err) {
return callback(err);
}

self.unbox("https://github.com/trufflesuite/truffle-init-" + name, dir)
if (name === "default") {
urlSuffix = "default#truffle-4-test-box";
} else {
urlSuffix = name;
}
self.unbox("https://github.com/trufflesuite/truffle-init-" + urlSuffix, dir)
.then(function() {
var config = Config.load(path.join(dir, "truffle-config.js"), {});
callback(null, config);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe("Contract names", function() {

before("set up sandbox", function(done) {
this.timeout(10000);
Box.sandbox("bare", function(err, conf) {
Box.sandbox("default", function(err, conf) {
if (err) return done(err);
config = conf;
config.network = "development";
Expand Down

0 comments on commit 6f126d5

Please sign in to comment.