Skip to content

Commit 27ae7bf

Browse files
authored
avoid relying on literal version for meta package (#1888)
1 parent 50b88e7 commit 27ae7bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/dartdoc_test.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,8 @@ void main() {
365365
expect(meta.documentedWhere, equals(DocumentLocation.remote));
366366
expect(
367367
useSomethingInAnotherPackage.modelType.linkedName,
368-
startsWith(
369-
'<a href=\"https://pub.dartlang.org/documentation/meta/1.1.6/meta/Required-class.html\">Required</a>'));
368+
matches(
369+
'<a href=\"https://pub.dartlang.org/documentation/meta/[^\"]*/meta/Required-class.html\">Required</a>'));
370370
RegExp stringLink = new RegExp(
371371
'https://api.dartlang.org/(dev|stable|edge|be)/${Platform.version.split(' ').first}/dart-core/String-class.html">String</a>');
372372
expect(useSomethingInTheSdk.modelType.linkedName, contains(stringLink));

0 commit comments

Comments
 (0)