test(createModule): not installing semantic-release's deps all over again

This commit is contained in:
Stephan Bönnemann
2015-06-11 17:07:28 -07:00
parent f0bb39a22e
commit bd715dfdf4
6 changed files with 9 additions and 13 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ module.exports = function (test, createModule) {
.cwd(cwd)
.run(command)
.code(0)
.stdout(/> semantic-release pre\n$/m)
.stdout(/semantic-release.js pre\n$/m)
.end(function (err) {
t.is(pkg + '', fs.readFileSync(cwd + '/package.json') + '', 'package')
t.error(err, 'nixt')
+2 -2
View File
@@ -33,7 +33,7 @@ module.exports = function (test, createModule) {
t.plan(1)
base.clone()
.stdout(/> semantic-release post\n\nGenerating changelog from.*\nParsed/m)
.stdout(/semantic-release.js post\n\nGenerating changelog from.*\nParsed/m)
.run('npm run postpublish')
.end(function (err) {
t.error(err, 'nixt')
@@ -44,7 +44,7 @@ module.exports = function (test, createModule) {
t.plan(1)
base.clone()
.stdout(/> semantic-release post\n\nGenerating changelog from.*\nParsed/m)
.stdout(/semantic-release.js post\n\nGenerating changelog from.*\nParsed/m)
.exec('git checkout `git rev-parse HEAD`')
.run('npm run postpublish')
.end(function (err) {
+1 -1
View File
@@ -20,7 +20,7 @@ module.exports = function (test, createModule) {
nixt()
.cwd(cwd)
.exec('git remote add origin git@github.com:user/repo.git')
.run('./node_modules/.bin/semantic-release setup')
.run('../../../bin/semantic-release.js setup')
.code(0)
.end(function (err) {
t.error(err, 'nixt')
+1 -1
View File
@@ -8,7 +8,7 @@ module.exports = function (test, createModule) {
createModule({
repository: {},
scripts: {
prepublish: 'semantic-release pre --no-token'
prepublish: '../../../bin/semantic-release.js pre'
}
}, efh()(function (name, cwd) {
t.test('verify package and options before publishing', function (t) {