We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3d2091 commit bde47e0Copy full SHA for bde47e0
@commitlint/rules/src/subject-full-stop.test.ts
@@ -8,6 +8,7 @@ const messages = {
8
standardScopeWith: `type(scope): subject.\n`,
9
nonStandardScopeWith: 'type.scope: subject.\n',
10
ellipsisMessage: 'test: subject ends with ellipsis...',
11
+ superShortMsg: 'ok',
12
};
13
14
const parsed = {
@@ -80,3 +81,10 @@ test('ellipsis is not fullstop so commit title ending with it against "never ."
80
81
const expected = true;
82
expect(actual).toEqual(expected);
83
});
84
+
85
+test('super short title still works', async () => {
86
+ const [actual] = subjectFullStop(await parsed.superShortMsg, 'never', '.');
87
+ const expected = true;
88
+ expect(actual).toEqual(expected);
89
+});
90
0 commit comments