From 9a9e48342cccd8f40acc36980a22ffa1c62af3a7 Mon Sep 17 00:00:00 2001 From: Natalie Weizenbaum Date: Wed, 15 May 2024 14:34:21 -0700 Subject: [PATCH] Add a test to ensure the sass_api dartdoc version matches sass --- test/double_check_test.dart | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/test/double_check_test.dart b/test/double_check_test.dart index 5cc2a2411..ee87b922d 100644 --- a/test/double_check_test.dart +++ b/test/double_check_test.dart @@ -114,6 +114,17 @@ void main() { expect(pkgPubspec.environment!["sdk"], equals(sassPubspec.environment!["sdk"])); }); + + 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)); + }); }); } }