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 d0e0aef
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/double_check_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,16 @@ 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 d0e0aef

Please sign in to comment.