Skip to content

Commit

Permalink
🐛 Update signing option argument to '-S'
Browse files Browse the repository at this point in the history
Fixes  #47
  • Loading branch information
carloscuesta committed May 5, 2017
1 parent e160007 commit 1fbab27
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gitmoji-cli",
"version": "1.5.2",
"version": "1.5.3",
"description": "A gitmoji client for using emojis on commit messages.",
"engines": {
"node": ">=4"
Expand Down
2 changes: 1 addition & 1 deletion src/gitmoji.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ class GitmojiCli {
let signed;

if (sign) {
signed = '-s';
signed = '-S';
} else {
signed = '';
}
Expand Down
6 changes: 3 additions & 3 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ describe('gitmoji', function() {

describe('commit', function() {
it('should return the formed commit based on the input prompts', function() {
gitmojiCli._commit(prompts).should.equal('git commit -s -m ":zap: Improving performance issues." -m "Refactored code. #5"');
gitmojiCli._commit(prompts).should.equal('git commit -S -m ":zap: Improving performance issues." -m "Refactored code. #5"');
});
});

Expand Down Expand Up @@ -63,8 +63,8 @@ describe('gitmoji', function() {
});

describe('_isCommitSigned', function() {
it('should have the signed commit flag "-s"', function() {
gitmojiCli._isCommitSigned(true).should.equal('-s');
it('should have the signed commit flag "-S"', function() {
gitmojiCli._isCommitSigned(true).should.equal('-S');
});

it('should not have the signed commit flag', function() {
Expand Down

0 comments on commit 1fbab27

Please sign in to comment.