@@ -62,7 +62,7 @@ void main() {
6262 test ('emits an error from the stream channel if the isolate fails to load' ,
6363 () {
6464 expect (spawnHybridUri ('non existent file' ).stream.first,
65- throwsA (TypeMatcher <Exception >()));
65+ throwsA (isA <Exception >()));
6666 });
6767 });
6868
@@ -215,7 +215,7 @@ void main() {
215215 }
216216 ''' );
217217
218- expect (channel.stream.first, throwsA (TypeMatcher <TestFailure >()));
218+ expect (channel.stream.first, throwsA (isA <TestFailure >()));
219219 });
220220
221221 test ('gracefully handles an unserializable message in the VM' , () {
@@ -225,7 +225,7 @@ void main() {
225225 void hybridMain(StreamChannel channel) {}
226226 ''' );
227227
228- expect (() => channel.sink.add ([].iterator), throwsArgumentError);
228+ expect (() => channel.sink.add (< Object > [].iterator), throwsArgumentError);
229229 });
230230
231231 test ('gracefully handles an unserializable message in the browser' ,
@@ -236,7 +236,7 @@ void main() {
236236 void hybridMain(StreamChannel channel) {}
237237 ''' );
238238
239- expect (() => channel.sink.add ([].iterator), throwsArgumentError);
239+ expect (() => channel.sink.add (< Object > [].iterator), throwsArgumentError);
240240 }, testOn: 'browser' );
241241
242242 test ('gracefully handles an unserializable message in the hybrid isolate' ,
0 commit comments