Skip to content

Commit

Permalink
Add a test to ensure the sass_api dartdoc version matches sass
Browse files Browse the repository at this point in the history
  • Loading branch information
nex3 committed May 15, 2024
1 parent 8c48a01 commit 9a9e483
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/double_check_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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<HostedDependency>());
expect(sassDep, isA<HostedDependency>());
expect((pkgDep as HostedDependency).version,
equals((sassDep as HostedDependency).version));
});
});
}
}
Expand Down

0 comments on commit 9a9e483

Please sign in to comment.