Skip to content

Commit

Permalink
test: normalize url, for issue #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Scrum committed Jul 20, 2020
1 parent 4412796 commit f27d1ed
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@ const processor = remark().use(lint).use(doubleLink);
const nok = `![img](./logo)
[super-link-1](http://link-1)
- [puper-link-1](http://link-1)
- [puper-link-1](http://link-2)`;
- [puper-link-1](http://link-2)
- [puper-link-1](http://link-2/index.php?foo=bar&ref=test_ref#content)`;

const ok = `- [puper-link-1](http://link-1)
- [puper-link-1](http://link-2)`;
Expand All @@ -26,7 +27,9 @@ test('remark-lint-double-link invalid', t => {
processor.processSync(nok).messages.map(String),
[
'2:1-2:30: http://link-1',
'3:3-3:32: http://link-1'
'3:3-3:32: http://link-1',
'4:3-4:32: http://link-2',
'5:3-5:71: http://link-2/index.php?foo=bar&ref=test_ref#content'
],
'should work on valid fixtures'
);
Expand Down

0 comments on commit f27d1ed

Please sign in to comment.