File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -288,15 +288,15 @@ void main() {
288
288
() => store
289
289
.box <TestEntity2 >()
290
290
.putQueued (TestEntity2 (), mode: PutMode .update),
291
- throwsA (predicate (
292
- ( ArgumentError e) => e.toString (). contains (' ID is not set' ))));
291
+ throwsA (isA < ArgumentError >()
292
+ . having (( e) => e.message, "message" , contains (" ID is not set" ))));
293
293
294
294
expect (
295
295
() => store
296
296
.box <TestEntityNonRel >()
297
297
.putQueued (TestEntityNonRel .filled (id: 5 ), mode: PutMode .insert),
298
- throwsA (predicate (( ArgumentError e) =>
299
- e. toString (). contains (' Use ID 0 (zero) to insert new entities' ))));
298
+ throwsA (isA < ArgumentError >(). having (( e) => e.message, "message" ,
299
+ contains (" Use ID 0 (zero) to insert new entities" ))));
300
300
301
301
store.awaitQueueCompletion ();
302
302
expect (store.box <TestEntity2 >().count (), 0 );
You can’t perform that action at this time.
0 commit comments