Skip to content

Commit

Permalink
Call installDefaultNpmDeps in old bundler-assets test.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Newman committed Nov 2, 2016
1 parent fd57b86 commit 4bf6940
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions tools/tests/old/test-bundler-assets.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,19 @@ var tmpDir = function () {
};

var makeProjectContext = function (appName) {
var testAppDir = files.pathJoin(
files.convertToStandardPath(__dirname), appName);

var projectDir = files.mkdtemp("test-bundler-assets");
files.cp_r(files.pathJoin(files.convertToStandardPath(__dirname), appName),
projectDir);

files.cp_r(testAppDir, projectDir);

require("../../cli/commands.js").installDefaultNpmDeps(projectDir);

var projectContext = new projectContextModule.ProjectContext({
projectDir: projectDir
});

doOrThrow(function () {
projectContext.prepareProjectForBuild();
});
Expand Down

0 comments on commit 4bf6940

Please sign in to comment.