Browse Source

Raised the Dart SDK constraint

main
Cédric Belin 1 month ago
parent
commit
7ffad29945
3 changed files with 6 additions and 6 deletions
  1. +2
    -2
      doc/installation.md
  2. +1
    -1
      pubspec.yaml
  3. +3
    -3
      test/where_test.dart

+ 2
- 2
doc/installation.md View File

@@ -8,10 +8,10 @@ You can verify if you're already good to go with the following commands:

``` shell
dart --version
# Dart VM version: 2.8.3 (stable) (Tue May 26 18:39:38 2020 +0200) on "windows_x64"
# Dart SDK version: 2.9.0 (stable) (Fri Jul 31 10:59:48 2020 +0200) on "windows_x64"

pub --version
# Pub 2.8.3
# Pub 2.9.0
```

!!! info


+ 1
- 1
pubspec.yaml View File

@@ -7,7 +7,7 @@ issue_tracker: https://git.belin.io/cedx/where.dart/issues
repository: https://git.belin.io/cedx/where.dart

environment:
sdk: ">=2.8.0 <3.0.0"
sdk: ">=2.9.0 <3.0.0"

executables:
where: where


+ 3
- 3
test/where_test.dart View File

@@ -5,7 +5,7 @@ import "package:where/where.dart";
void main() => group("where()", () {
test("should return the path of the `executable.cmd` file on Windows", () async {
try {
final executable = await where("executable", all: false, path: ["test/fixtures"]);
final executable = await where("executable", path: ["test/fixtures"]);
if (!Finder.isWindows) fail("Exception not thrown");
else expect(executable, allOf(const TypeMatcher<String>(), endsWith(r"\test\fixtures\executable.cmd")));
}
@@ -34,7 +34,7 @@ void main() => group("where()", () {

test("should return the path of the `executable.sh` file on POSIX", () async {
try {
final executable = await where("executable.sh", all: false, path: ["test/fixtures"]);
final executable = await where("executable.sh", path: ["test/fixtures"]);
if (Finder.isWindows) fail("Exception not thrown");
else expect(executable, allOf(const TypeMatcher<String>(), endsWith("/test/fixtures/executable.sh")));
}
@@ -62,7 +62,7 @@ void main() => group("where()", () {
});

test("should return the value of the `onError` handler", () async {
final executable = await where("executable", all: false, onError: (_) => "foo", path: ["test/fixtures"]);
final executable = await where("executable", onError: (_) => "foo", path: ["test/fixtures"]);
if (!Finder.isWindows) expect(executable, "foo");

final executables = await where("executable.sh", all: true, onError: (_) => ["foo"], path: ["test/fixtures"]);


Loading…
Cancel
Save