Skip to content

Commit bde47e0

Browse files
committed
WIP1
1 parent e3d2091 commit bde47e0

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

@commitlint/rules/src/subject-full-stop.test.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ const messages = {
88
standardScopeWith: `type(scope): subject.\n`,
99
nonStandardScopeWith: 'type.scope: subject.\n',
1010
ellipsisMessage: 'test: subject ends with ellipsis...',
11+
superShortMsg: 'ok',
1112
};
1213

1314
const parsed = {
@@ -80,3 +81,10 @@ test('ellipsis is not fullstop so commit title ending with it against "never ."
8081
const expected = true;
8182
expect(actual).toEqual(expected);
8283
});
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

Comments
 (0)