From fa5c61e441b88204dbcee334ebf4478b9f0949c5 Mon Sep 17 00:00:00 2001 From: Simon Lecoq <22963968+lowlighter@users.noreply.github.com> Date: Tue, 21 May 2024 07:37:36 -0400 Subject: fix(cli/coverage): invalid line id in html reporter (#23908) --- tests/integration/coverage_tests.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'tests') diff --git a/tests/integration/coverage_tests.rs b/tests/integration/coverage_tests.rs index 6e9a1454c..ae732f25f 100644 --- a/tests/integration/coverage_tests.rs +++ b/tests/integration/coverage_tests.rs @@ -486,6 +486,9 @@ fn test_html_reporter() { assert_contains!(bar_ts_html, "

Coverage report for bar.ts

"); // Check in source code is escaped to <T> assert_contains!(bar_ts_html, "<T>"); + // Check that line anchors are correctly referenced by line number links + assert_contains!(bar_ts_html, ""); + assert_contains!(bar_ts_html, "1"); let baz_index_html = tempdir .join("html") -- cgit v1.2.3