Skip to content

Commit cbe67e5

Browse files
committed
add a case to the JS test to confirm ignoring node_modules
1 parent dbffa1b commit cbe67e5

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

pkg/comments/comments_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ func TestJSFiles(t *testing.T) {
1313
t.Fatal(err)
1414
}
1515

16-
if len(comments) != 2 {
16+
if len(comments) != 3 {
1717
t.Fail()
1818
}
1919
}

pkg/comments/testdata/javascript/node_modules/ignored.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
// this comment should be found
2+

0 commit comments

Comments
 (0)