Skip to content

Commit a95815d

Browse files
committed
fixup! fix: fix handling of uri variables
1 parent b13c2d2 commit a95815d

File tree

1 file changed

+4
-14
lines changed

1 file changed

+4
-14
lines changed

test/core/augmented_form_test.dart

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,8 @@ void main() {
164164
);
165165

166166
expect(
167-
() => augmentedForm2.resolvedHref,
168-
throwsA(isA<UriVariableException>()),
167+
augmentedForm2.resolvedHref,
168+
Uri.parse("http://example.org/weather/?lat=5"),
169169
);
170170

171171
final augmentedForm3 = AugmentedForm(
@@ -178,18 +178,8 @@ void main() {
178178
);
179179

180180
expect(
181-
() => augmentedForm3.resolvedHref,
182-
throwsA(
183-
predicate(
184-
(exception) =>
185-
exception is UriVariableException &&
186-
exception.toString() ==
187-
"UriVariableException: The following URI template "
188-
"variables defined at the TD level are not covered by "
189-
"the values provided by the user: lat. Values for the "
190-
"following variables were received: long.",
191-
),
192-
),
181+
augmentedForm3.resolvedHref,
182+
Uri.parse("http://example.org/weather/?long=10"),
193183
);
194184

195185
final augmentedForm4 = AugmentedForm(

0 commit comments

Comments
 (0)