Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
update dependencies - close #55
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlacy committed Aug 12, 2016
1 parent a47cfb1 commit 07a71ba
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
6 changes: 3 additions & 3 deletions package.json
Expand Up @@ -7,16 +7,16 @@
"author": "Steve Lacy <me@slacy.me> (http://slacy.me)",
"main": "./index.js",
"dependencies": {
"bump-regex": "^2.2.0",
"bump-regex": "^2.3.0",
"plugin-error": "^0.1.2",
"plugin-log": "^0.1.0",
"semver": "^5.0.3",
"semver": "^5.3.0",
"through2": "^2.0.1"
},
"devDependencies": {
"mocha": "*",
"should": "*",
"vinyl": "^1.1.1"
"vinyl": "^1.2.0"
},
"scripts": {
"test": "mocha --reporter spec"
Expand Down
17 changes: 17 additions & 0 deletions test/index.js
Expand Up @@ -135,6 +135,23 @@ describe('gulp-bump: JSON comparison fixtures', function() {
bumpS.end();
});

it('should update prerelease tags without a version', function(done) {
var fakeFile = new File({
contents: new Buffer('{ "version": "0.1.0-zeta"}'),
path: 'test/fixtures/test.json'
});

var bumpS = bump({type: 'patch'});

bumpS.once('data', function(newFile) {
should.exist(newFile);
JSON.parse(newFile.contents.toString()).version.should.equal('0.1.0');
return done();
});
bumpS.write(fakeFile);
bumpS.end();
});

it('should return bumpData', function(done) {
var fakeFile = new File({
contents: new Buffer('{ "version": "0.1.0-zeta.1"}'),
Expand Down

0 comments on commit 07a71ba

Please sign in to comment.