Skip to content

Commit

Permalink
-
Browse files Browse the repository at this point in the history
  • Loading branch information
polina-c committed Aug 24, 2024
1 parent 7605342 commit c008a04
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/leak_tracker/lib/src/shared/_primitives.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ final leakTrackerYamlHeader = '''
/// The enum is test covered to catch broken links.
enum Links {
gitHubTroubleshooting(
'https://github.com/dart-lang/leak_tracker/blob/main/doc/TROUBLESHOOT.md',
'https://github.com/dart-lang/leak_tracker/blob/main/doc/leak_tracking/TROUBLESHOOT.md',
null,
),
;
Expand Down
3 changes: 3 additions & 0 deletions pkgs/leak_tracker/test/tests/shared/_primitives_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ void main() {
for (final link in Links.values) {
test('$link is not broken', () async {
final content = await loadPageHtmlContent(link.value);

expect(content, isNot(contains('"title":"File not found"')));

final hash = link.hash;
if (hash != null) {
expect(content, contains('href="#$hash"'));
Expand Down

0 comments on commit c008a04

Please sign in to comment.