Skip to content

Commit d24404a

Browse files
committed
test(core): add failing test for null input
1 parent 6565ab1 commit d24404a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

@commitlint/core/src/library/to-lines.test.js

+4
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ test('should return an array for empty input', t => {
55
t.deepEqual(toLines(), []);
66
});
77

8+
test.failing('should return an array for null input', t => {
9+
t.deepEqual(toLines(null), []);
10+
});
11+
812
test('should return an array for empty string input', t => {
913
t.deepEqual(toLines(''), ['']);
1014
});

0 commit comments

Comments
 (0)