Skip to content

Commit

Permalink
unit test for case insensitivity
Browse files Browse the repository at this point in the history
  • Loading branch information
roygold7 committed Oct 4, 2018
1 parent 408294e commit 971304a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/unit/marked-spec.js
Expand Up @@ -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');
});
});

0 comments on commit 971304a

Please sign in to comment.