@@ -400,6 +400,50 @@ void main() {
400
400
expect (constructedEvent.eventData.length, 4 );
401
401
});
402
402
403
+ test ('Event.flutterWasmDryRun constructed' , () {
404
+ Event generateEventNoFindings () => Event .flutterWasmDryRun (
405
+ result: 'success' ,
406
+ exitCode: 123 ,
407
+ );
408
+
409
+ final constructedEvent1 = generateEventNoFindings ();
410
+
411
+ expect (generateEventNoFindings, returnsNormally);
412
+ expect (constructedEvent1.eventName, DashEvent .flutterWasmDryRun);
413
+ expect (constructedEvent1.eventData['result' ], 'success' );
414
+ expect (constructedEvent1.eventData['exitCode' ], 123 );
415
+ expect (constructedEvent1.eventData.length, 2 );
416
+ });
417
+ test ('Event.flutterWasmDryRun constructed' , () {
418
+ Event generateEventNoFindings () => Event .flutterWasmDryRun (
419
+ result: 'success' ,
420
+ exitCode: 123 ,
421
+ );
422
+
423
+ final constructedEvent1 = generateEventNoFindings ();
424
+
425
+ expect (generateEventNoFindings, returnsNormally);
426
+ expect (constructedEvent1.eventName, DashEvent .flutterWasmDryRun);
427
+ expect (constructedEvent1.eventData['result' ], 'success' );
428
+ expect (constructedEvent1.eventData['exitCode' ], 123 );
429
+ expect (constructedEvent1.eventData.length, 2 );
430
+
431
+ Event generateEventFindings () => Event .flutterWasmDryRun (
432
+ result: 'success' ,
433
+ exitCode: 123 ,
434
+ findingsSummary: '1,2,3'
435
+ );
436
+
437
+ final constructedEvent2 = generateEventFindings ();
438
+
439
+ expect (generateEventFindings, returnsNormally);
440
+ expect (constructedEvent2.eventName, DashEvent .flutterWasmDryRun);
441
+ expect (constructedEvent2.eventData['result' ], 'success' );
442
+ expect (constructedEvent2.eventData['exitCode' ], 123 );
443
+ expect (constructedEvent2.eventData['findingsSummary' ], '1,2,3' );
444
+ expect (constructedEvent2.eventData.length, 3 );
445
+ });
446
+
403
447
test ('Event.flutterInjectDarwinPlugins constructed' , () {
404
448
Event generateEvent () => Event .flutterInjectDarwinPlugins (
405
449
platform: 'ios' ,
0 commit comments