37
37
Tests are specified using the top-level [ ` test() ` ] function.
38
38
Test asserts can be made using [ ` expect ` from ` package:matcher ` ] [ expect ]
39
39
40
- [ `test()` ] : https://pub.dev/documentation/test_core /latest/test_core.scaffolding /test.html
40
+ [ `test()` ] : https://pub.dev/documentation/test /latest/test /test.html
41
41
42
42
[ expect ] : https://pub.dev/documentation/matcher/latest/expect/expect.html
43
43
@@ -60,7 +60,7 @@ void main() {
60
60
Tests can be grouped together using the [ ` group() ` ] function. Each group's
61
61
description is added to the beginning of its test's descriptions.
62
62
63
- [ `group()` ] : https://pub.dev/documentation/test_core /latest/test_core.scaffolding /group.html
63
+ [ `group()` ] : https://pub.dev/documentation/test /latest/test /group.html
64
64
65
65
``` dart
66
66
import 'package:test/test.dart';
@@ -116,9 +116,9 @@ void main() {
116
116
}
117
117
```
118
118
119
- [ `setUp()` ] : https://pub.dev/documentation/test_core /latest/test_core.scaffolding /setUp.html
119
+ [ `setUp()` ] : https://pub.dev/documentation/test /latest/test /setUp.html
120
120
121
- [ `tearDown()` ] : https://pub.dev/documentation/test_core /latest/test_core.scaffolding /tearDown.html
121
+ [ `tearDown()` ] : https://pub.dev/documentation/test /latest/test /tearDown.html
122
122
123
123
## Running Tests
124
124
@@ -317,7 +317,7 @@ void main() {
317
317
}
318
318
```
319
319
320
- [ `@TestOn` ] : https://pub.dev/documentation/test_api /latest/test_api.scaffolding /TestOn-class.html
320
+ [ `@TestOn` ] : https://pub.dev/documentation/test /latest/test /TestOn-class.html
321
321
322
322
The string you pass to ` @TestOn ` is what's called a "platform selector", and it
323
323
specifies exactly which platforms a test can run on. It can be as simple as the
@@ -776,9 +776,9 @@ The only difference is where the code from the isolate comes from:
776
776
` spawnHybridUri()` takes a URL. They both return a [`StreamChannel`] that
777
777
communicates with the hybrid isolate. For example :
778
778
779
- [`spawnHybridCode()`] : https://pub.dev/documentation/test_api /latest/test_api.scaffolding /spawnHybridCode.html
779
+ [`spawnHybridCode()`] : https://pub.dev/documentation/test /latest/test /spawnHybridCode.html
780
780
781
- [`spawnHybridUri()`] : https://pub.dev/documentation/test_api /latest/test_api.scaffolding /spawnHybridUri.html
781
+ [`spawnHybridUri()`] : https://pub.dev/documentation/test /latest/test /spawnHybridUri.html
782
782
783
783
[dart:isolate] : https://api.dart.dev/stable/dart-isolate/dart-isolate-library.html
784
784
0 commit comments