From 971304ab0a6c095fc0440a587af3ad43833dabb7 Mon Sep 17 00:00:00 2001 From: Roy <40822827+roygold7@users.noreply.github.com> Date: Thu, 4 Oct 2018 21:02:59 +0300 Subject: [PATCH] unit test for case insensitivity --- test/unit/marked-spec.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/test/unit/marked-spec.js b/test/unit/marked-spec.js index 97789afe09..cdb897488c 100644 --- a/test/unit/marked-spec.js +++ b/test/unit/marked-spec.js @@ -25,3 +25,13 @@ describe('Test paragraph token type', function () { expect(tokens[7].type).toBe('text'); }); }); + +describe('Test url token type', function () { + it('should use the "url" type', function () { + const md = 'HtTps://www.testsite.com'; + + const tokens = marked.lexer(md); + + expect(tokens[0].type).toBe('url'); + }); +});