Skip to content

Commit

Permalink
nit: make test read a bit better
Browse files Browse the repository at this point in the history
  • Loading branch information
Benjamin Coe committed Nov 27, 2016
1 parent 5c5c4a5 commit 9cff789
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions test.js
Expand Up @@ -471,24 +471,6 @@ describe('standard-version', function () {
})
})

describe('with bower.json', function () {
beforeEach(function () {
writeBowerJson('1.0.0')
})

it('check with bower.json', function (done) {
commit('feat: first commit')
shell.exec('git tag -a v1.0.0 -m "my awesome first release"')
commit('feat: new feature!')
require('./index')({silent: true}, function (err) {
if (err) return done(err)
JSON.parse(fs.readFileSync('package.json', 'utf-8')).version.should.equal('1.1.0')
getPackageVersion().should.equal('1.1.0')
done()
})
})
})

it('formats the commit and tag messages appropriately', function (done) {
commit('feat: first commit')
shell.exec('git tag -a v1.0.0 -m "my awesome first release"')
Expand All @@ -504,4 +486,22 @@ describe('standard-version', function () {
done()
})
})

describe('bower.json support', function () {
beforeEach(function () {
writeBowerJson('1.0.0')
})

it('bumps verson # in bower.json', function (done) {
commit('feat: first commit')
shell.exec('git tag -a v1.0.0 -m "my awesome first release"')
commit('feat: new feature!')
require('./index')({silent: true}, function (err) {
if (err) return done(err)
JSON.parse(fs.readFileSync('package.json', 'utf-8')).version.should.equal('1.1.0')
getPackageVersion().should.equal('1.1.0')
done()
})
})
})
})

0 comments on commit 9cff789

Please sign in to comment.