From da6c24bbcaf0dfe3214a8a754339af9042aba743 Mon Sep 17 00:00:00 2001 From: Aaron Bohy Date: Mon, 21 Oct 2019 09:47:20 +0200 Subject: [PATCH] [FIX] test: do not check external links in doc --- tests/doc_link_checker.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/doc_link_checker.test.ts b/tests/doc_link_checker.test.ts index 81edb9bb..8d1207de 100644 --- a/tests/doc_link_checker.test.ts +++ b/tests/doc_link_checker.test.ts @@ -54,6 +54,10 @@ interface FileData { } function isLinkValid(link: MarkDownLink, current: FileData, files: FileData[]): boolean { + if (link.link.startsWith('http')) { + // no check on external links + return true; + } const parts = link.link.split("#"); const currentParts = current.name.split("/"); const path = currentParts.length > 1 ? currentParts[0] + "/" : "";