Skip to content

Commit

Permalink
fixup! fix: fix handling of uri variables
Browse files Browse the repository at this point in the history
  • Loading branch information
JKRhb committed Jan 5, 2024
1 parent b13c2d2 commit a95815d
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions test/core/augmented_form_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,8 @@ void main() {
);

expect(
() => augmentedForm2.resolvedHref,
throwsA(isA<UriVariableException>()),
augmentedForm2.resolvedHref,
Uri.parse("http://example.org/weather/?lat=5"),
);

final augmentedForm3 = AugmentedForm(
Expand All @@ -178,18 +178,8 @@ void main() {
);

expect(
() => augmentedForm3.resolvedHref,
throwsA(
predicate(
(exception) =>
exception is UriVariableException &&
exception.toString() ==
"UriVariableException: The following URI template "
"variables defined at the TD level are not covered by "
"the values provided by the user: lat. Values for the "
"following variables were received: long.",
),
),
augmentedForm3.resolvedHref,
Uri.parse("http://example.org/weather/?long=10"),
);

final augmentedForm4 = AugmentedForm(
Expand Down

0 comments on commit a95815d

Please sign in to comment.