Skip to content

Commit 97cc341

Browse files
committed
refactor(gen:test): don't symlink bower_components anymore
1 parent af7a6e6 commit 97cc341

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

Diff for: src/test/endpoint.test.js

+3-7
Original file line numberDiff line numberDiff line change
@@ -53,12 +53,8 @@ function runEndpointGen(name, opt={}) {
5353
dir = _dir;
5454

5555
// symlink our dependency directories
56-
return Promise.all([
57-
fs.mkdirAsync(dir + '/client').then(() => {
58-
return fs.symlinkAsync(__dirname + '/fixtures/bower_components', dir + '/client/bower_components');
59-
}),
60-
fs.symlinkAsync(__dirname + '/fixtures/node_modules', dir + '/node_modules')
61-
]).then(done);
56+
return fs.symlinkAsync(__dirname + '/fixtures/node_modules', dir + '/node_modules')
57+
.then(done);
6258
})
6359
.withOptions(options)
6460
.withArguments([name])
@@ -250,4 +246,4 @@ describe('angular-fullstack:endpoint', function() {
250246
return jshintDir(dir, 'foo-bar').should.be.fulfilled();
251247
});
252248
});
253-
});
249+
});

Diff for: src/test/test-helpers.js

-3
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,6 @@ export function runGen(prompts, opts={}) {
100100
if(DEBUG) console.log(`TEMP DIR: ${dir}`);
101101

102102
let promises = [
103-
fs.mkdirAsync(dir + '/client').then(() => {
104-
return fs.symlinkAsync(__dirname + '/fixtures/bower_components', dir + '/client/bower_components');
105-
}),
106103
fs.symlinkAsync(__dirname + '/fixtures/node_modules', dir + '/node_modules')
107104
];
108105

0 commit comments

Comments
 (0)