Skip to content

Commit

Permalink
commitlintplugins.test: add another failing test
Browse files Browse the repository at this point in the history
  • Loading branch information
tehraninasab committed Oct 24, 2022
1 parent d750716 commit 5478dc4
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions commitlintplugins.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -104,13 +104,21 @@ test('reject-obvious-words2', () => {


test('reject-obvious-words3', () => {
let commitMsgWithoutObviousWordAfterColon = "foo: bla bla bla";
let rejectObviousWord3 = runCommitLintOnMsg(commitMsgWithoutObviousWordAfterColon);
let commitMsgWithoutObviousWords = "foo: bla bla bla";
let rejectObviousWord3 = runCommitLintOnMsg(commitMsgWithoutObviousWords);
// console.log('==========>' + rejectObviousWord3.stdout)
expect(rejectObviousWord3.status).toBe(0);
});


test('reject-obvious-words4', () => {
let commitMsgWithObviousWordsInTheMiddleOfTitle = "foo: bla update bla";
let rejectObviousWord4 = runCommitLintOnMsg(commitMsgWithObviousWordsInTheMiddleOfTitle);
// console.log('==========>' + rejectObviousWord4.stdout)
expect(rejectObviousWord4.status).not.toBe(0);
});


test('subject-lowercase1', () => {
let commitMsgWithUppercaseAfterColon = "foo: Bar baz";
let subjectLowerCase1 = runCommitLintOnMsg(commitMsgWithUppercaseAfterColon);
Expand Down

0 comments on commit 5478dc4

Please sign in to comment.