diff --git a/pubspec.yaml b/pubspec.yaml index bb285238e..c4acb1234 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -48,7 +48,7 @@ dev_dependencies: lints: ">=2.0.0 <5.0.0" protoc_plugin: ">=20.0.0 <22.0.0" pub_api_client: ^2.1.1 - pubspec_parse: ^1.0.0 + pubspec_parse: ^1.3.0 test: ^1.16.7 test_descriptor: ^2.0.0 test_process: ^2.0.0 diff --git a/test/double_check_test.dart b/test/double_check_test.dart index ee87b922d..1da209885 100644 --- a/test/double_check_test.dart +++ b/test/double_check_test.dart @@ -116,14 +116,8 @@ void main() { }); test("matches dartdoc version", () { - // TODO(nweiz): Just use equals() once dart-lang/pubspec_parse#127 lands - // and is released. - var sassDep = sassPubspec.devDependencies["dartdoc"]; - var pkgDep = pkgPubspec.devDependencies["dartdoc"]; - expect(pkgDep, isA()); - expect(sassDep, isA()); - expect((pkgDep as HostedDependency).version, - equals((sassDep as HostedDependency).version)); + expect(sassPubspec.devDependencies["dartdoc"], + equals(pkgPubspec.devDependencies["dartdoc"])); }); }); }