Skip to content

Commit

Permalink
force montage-testing/montage to load local montage on node
Browse files Browse the repository at this point in the history
  • Loading branch information
hthetiot committed Jun 7, 2017
1 parent 0239d5a commit bca5a69
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion test/run-node.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,17 @@ jasmineEnv.addReporter({
}
});

// Execute
// Load package
Montage.loadPackage(PATH.join(__dirname, "."), {
mainPackageLocation: PATH.join(__dirname, "../")
})
// Preload montage to avoid montage-testing/montage to be loaded
.then(function (mr) {
return mr.async('montage').then(function (montage) {
return mr;
});
})
// Execute
.then(function (mr) {
return mr.async("all");
}).then(function () {
Expand Down

0 comments on commit bca5a69

Please sign in to comment.