diff --git a/test/TOCSpec.hs b/test/TOCSpec.hs index e43c0e906..bcf4425b8 100644 --- a/test/TOCSpec.hs +++ b/test/TOCSpec.hs @@ -39,13 +39,13 @@ spec = parallel $ do , JSONSummary $ Summarizable C.Method "baz" (sourceSpanBetween (4, 1) (5, 4)) "removed" ] it "dedupes changes in same parent method" $ do - sourceBlobs <- blobsForPaths (both "javascript/dupParent.A.js" "javascript/dupParent.B.js") + sourceBlobs <- blobsForPaths (both "javascript/duplicate-parent.A.js" "javascript/duplicate-parent.B.js") diff <- testDiff sourceBlobs diffTOC sourceBlobs diff `shouldBe` [ JSONSummary $ InSummarizable C.Function "myFunction" (sourceSpanBetween (1, 1) (6, 2)) ] it "dedupes similar methods" $ do - sourceBlobs <- blobsForPaths (both "javascript/erroneousDupMethod.A.js" "javascript/erroneousDupMethod.B.js") + sourceBlobs <- blobsForPaths (both "javascript/erroneous-duplicate-method.A.js" "javascript/erroneous-duplicate-method.B.js") diff <- testDiff sourceBlobs diffTOC sourceBlobs diff `shouldBe` [ JSONSummary $ Summarizable C.Function "performHealthCheck" (sourceSpanBetween (8, 1) (29, 2)) "modified" ] diff --git a/test/corpus/toc/javascript/dupParent.A.js b/test/corpus/toc/javascript/duplicate-parent.A.js similarity index 100% rename from test/corpus/toc/javascript/dupParent.A.js rename to test/corpus/toc/javascript/duplicate-parent.A.js diff --git a/test/corpus/toc/javascript/dupParent.B.js b/test/corpus/toc/javascript/duplicate-parent.B.js similarity index 100% rename from test/corpus/toc/javascript/dupParent.B.js rename to test/corpus/toc/javascript/duplicate-parent.B.js diff --git a/test/corpus/toc/javascript/erroneousDupMethod.A.js b/test/corpus/toc/javascript/erroneous-duplicate-method.A.js similarity index 100% rename from test/corpus/toc/javascript/erroneousDupMethod.A.js rename to test/corpus/toc/javascript/erroneous-duplicate-method.A.js diff --git a/test/corpus/toc/javascript/erroneousDupMethod.B.js b/test/corpus/toc/javascript/erroneous-duplicate-method.B.js similarity index 100% rename from test/corpus/toc/javascript/erroneousDupMethod.B.js rename to test/corpus/toc/javascript/erroneous-duplicate-method.B.js