Skip to content

Commit

Permalink
update tests for the latest package:checks (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
devoncarew authored Jan 18, 2023
1 parent 2de65d2 commit 40afc5b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/corpus/test/pub_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ extension VersionConstraintChecks on Check<VersionConstraint> {
void allows(String version) {
context.expect(() => const ['allows'], (VersionConstraint actual) {
final ver = Version.parse(version);
if (!actual.allows(ver)) return Rejection(actual: '$actual');
if (!actual.allows(ver)) return Rejection(actual: ['$actual']);
return null;
});
}
Expand Down

0 comments on commit 40afc5b

Please sign in to comment.