Example #1
0
  it( 'should create a default commit message if no version is passed', () => {
    util.git.commit();

    expect( execStub ).toBeCalledWith(
      'git commit -am "Auto-incrementing version"'
    );
  } );
Example #2
0
 commit: function(fn){
     utils.git.commit(language.version.new, function(err){
         if(err)
             return fn(err);
         else{
             logger.info("Committed changes!");
             return fn();
         }
     });
 },
Example #3
0
  it( 'should create a commit message using the passed version', () => {
    util.git.commit( '1.0.0' );

    expect( execStub ).toBeCalledWith( 'git commit -am "1.0.0"' );
  } );