Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
xuwei-k committed Mar 14, 2020
1 parent e55427b commit 612c949
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion test/link.js
Original file line number Diff line number Diff line change
Expand Up @@ -229,7 +229,16 @@ describe("Check links", () => {
let [urls, files] = partition(links, isUrl);

// #から始まるリンクはページ内リンク(脚注)なので除外
let testFiles = files.filter((s) => !s.startsWith("#")).map(modifyLinkForTest);
//
// Scalaコードの一部をリンクとして検出してしまうので、特定の拡張子以外は除外
let testFiles = files.filter((s) =>
!s.startsWith("#") && (
s.endsWith(".md") || s.endsWith(".scala") || s.endsWith(".sbt")
)
).map(modifyLinkForTest);

console.log(files);
console.log(testFiles);

// src/../foo/barのようなリンクはビルド後は参照できなくなるのでそういったリンクがないことを確認する。
it("should local files are in src directory", function() {
Expand Down

0 comments on commit 612c949

Please sign in to comment.