Skip to content

Commit 18923c1

Browse files
committed
test: add test for isExternal
1 parent 3e25001 commit 18923c1

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

test/unit/core-util.test.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,8 @@ describe('core/util', () => {
6060
expect(result).toBeTruthy();
6161
});
6262

63-
test('external url with two \\ ', () => {
64-
const result = isExternal(
65-
'/\\\\example.github.io/docsify/demo.md'
66-
);
63+
test('external url with two \\', () => {
64+
const result = isExternal('/\\\\example.github.io/docsify/demo.md');
6765

6866
expect(result).toBeTruthy();
6967
});

0 commit comments

Comments
 (0)