Skip to content

Commit cc13e45

Browse files
committed
Updates reporter - better API detection
1 parent 81f7c08 commit cc13e45

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

report/reporter.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def find_test(endpoint)
8383
relative_path = path[path.index('/tests')..-1]
8484

8585
File.readlines(path).each_with_index do |line, index|
86-
next unless line.include?(endpoint)
86+
next unless line.split(':')[0].strip.gsub('"', '') == endpoint
8787

8888
return { endpoint: endpoint, file: ".#{relative_path}", line: index + 1 }
8989
end

0 commit comments

Comments
 (0)