Skip to content

Commit

Permalink
commitlintplugins.test: add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
tehraninasab committed Oct 24, 2022
1 parent ab8a658 commit d750716
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 @@ -90,19 +90,27 @@ test('prefer-slash-over-backslash2', () => {
test('reject-obvious-words1', () => {
let commitMsgWithObviousWordAfterColon = "foo: modify bla bla";
let rejectObviousWord1 = runCommitLintOnMsg(commitMsgWithObviousWordAfterColon);
console.log('==========>' + rejectObviousWord1.stdout)
// console.log('==========>' + rejectObviousWord1.stdout)
expect(rejectObviousWord1.status).not.toBe(0);
});


test('reject-obvious-words2', () => {
let commitMsgWithObviousWordAfterColon = "foo: change bla bla";
let rejectObviousWord2 = runCommitLintOnMsg(commitMsgWithObviousWordAfterColon);
console.log('==========>' + rejectObviousWord2.stdout)
// console.log('==========>' + rejectObviousWord2.stdout)
expect(rejectObviousWord2.status).not.toBe(0);
});


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


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

0 comments on commit d750716

Please sign in to comment.