Skip to content

Commit f92bb41

Browse files
committed
fix: update analyze_line() call
1 parent b041151 commit f92bb41

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/plugins/npm_test.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,5 +18,5 @@ class TestNpmDetector:
1818
)
1919
def test_analyze(self, payload, should_flag):
2020
logic = NpmDetector()
21-
output = logic.analyze_line(payload, 1, 'mock_filename')
21+
output = logic.analyze_line(filename='mock_filename', line=payload)
2222
assert len(output) == int(should_flag)

0 commit comments

Comments
 (0)