Skip to content

Commit

Permalink
test: add test for isExternal
Browse files Browse the repository at this point in the history
  • Loading branch information
sy-records committed Jun 16, 2023
1 parent 3e25001 commit 18923c1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions test/unit/core-util.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,8 @@ describe('core/util', () => {
expect(result).toBeTruthy();
});

test('external url with two \\ ', () => {
const result = isExternal(
'/\\\\example.github.io/docsify/demo.md'
);
test('external url with two \\', () => {
const result = isExternal('/\\\\example.github.io/docsify/demo.md');

expect(result).toBeTruthy();
});
Expand Down

0 comments on commit 18923c1

Please sign in to comment.