@@ -153,12 +153,12 @@ void main() {
153
153
group ('Test Task' , () {
154
154
test ('should fail if some unit tests fail' , () async {
155
155
expect (runTests (projectWithFailingTests, unit: true , integration: false ),
156
- throwsA (isA <TestFailure >()));
156
+ throwsA (const isInstanceOf <TestFailure >()));
157
157
});
158
158
159
159
test ('should fail if some integration tests fail' , () async {
160
160
expect (runTests (projectWithFailingTests, unit: false , integration: true ),
161
- throwsA (isA <TestFailure >()));
161
+ throwsA (const isInstanceOf <TestFailure >()));
162
162
});
163
163
164
164
test ('should run individual unit test' , () async {
@@ -206,7 +206,8 @@ void main() {
206
206
});
207
207
208
208
test ('should warn if "test" package is not immediate dependency' , () async {
209
- expect (runTests (projectWithoutTestPackage), throwsA (isA <TestFailure >()));
209
+ expect (runTests (projectWithoutTestPackage),
210
+ throwsA (const isInstanceOf <TestFailure >()));
210
211
});
211
212
212
213
test ('should run tests that require a Pub server' , () async {
@@ -227,7 +228,7 @@ void main() {
227
228
228
229
test ('should fail if named test does not exist' , () async {
229
230
expect (runTests (projectWithPassingTests, testName: 'non-existent test' ),
230
- throwsA (isA <TestFailure >()));
231
+ throwsA (const isInstanceOf <TestFailure >()));
231
232
});
232
233
233
234
test ('should allow you to specify a web-compiler' , () async {
@@ -253,12 +254,12 @@ void main() {
253
254
254
255
test ('should fail if using dartium on Dart2' , () async {
255
256
expect (runTests (projectWithPassingTests, platform: 'dartium' ),
256
- throwsA (isA <TestFailure >()));
257
+ throwsA (const isInstanceOf <TestFailure >()));
257
258
}, tags: 'dart2-only' );
258
259
259
260
test ('should fail if using content-shell on Dart2' , () async {
260
261
expect (runTests (projectWithPassingTests, platform: 'content-shell' ),
261
- throwsA (isA <TestFailure >()));
262
+ throwsA (const isInstanceOf <TestFailure >()));
262
263
}, tags: 'dart2-only' );
263
264
264
265
test ('should not fail if using dartium on Dart1' , () async {
0 commit comments