Skip to content

Commit 3e25001

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

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

Diff for: test/unit/core-util.test.js

+8
Original file line numberDiff line numberDiff line change
@@ -59,5 +59,13 @@ describe('core/util', () => {
5959

6060
expect(result).toBeTruthy();
6161
});
62+
63+
test('external url with two \\ ', () => {
64+
const result = isExternal(
65+
'/\\\\example.github.io/docsify/demo.md'
66+
);
67+
68+
expect(result).toBeTruthy();
69+
});
6270
});
6371
});

0 commit comments

Comments
 (0)