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

Commit

Permalink
update deps, add test for patching 0.0.9 fixes #34
Browse files Browse the repository at this point in the history
  • Loading branch information
stephenlacy committed Feb 23, 2015
1 parent 27813b5 commit 6bb3f0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
"author": "Steve Lacy <me@slacy.me> (http://slacy.me)",
"main": "./index.js",
"dependencies": {
"gulp-util": "^3.0.1",
"semver": "^2.3.2",
"gulp-util": "^3.0.3",
"semver": "^4.3.0",
"through2": "^0.5.1"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions test/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ describe('gulp-bump', function() {

it('should bump patch version by default', function(done) {
var fakeFile = new gutil.File({
contents: new Buffer('{ "version": "0.0.1" }')
contents: new Buffer('{ "version": "0.0.9" }')
});

var bumpS = bump();

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

0 comments on commit 6bb3f0a

Please sign in to comment.