Skip to content

Commit 971304a

Browse files
authored
unit test for case insensitivity
1 parent 408294e commit 971304a

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test/unit/marked-spec.js

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,13 @@ describe('Test paragraph token type', function () {
2525
expect(tokens[7].type).toBe('text');
2626
});
2727
});
28+
29+
describe('Test url token type', function () {
30+
it('should use the "url" type', function () {
31+
const md = 'HtTps://www.testsite.com';
32+
33+
const tokens = marked.lexer(md);
34+
35+
expect(tokens[0].type).toBe('url');
36+
});
37+
});

0 commit comments

Comments
 (0)