File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ public async Task Open_Ok()
2727 {
2828 Context . JSInterop . Setup < string ? > ( "getPreviewUrl" ) . SetResult ( "blob:https://test-preview" ) ;
2929 Context . JSInterop . Setup < bool > ( "open" , _ => true ) . SetResult ( true ) ;
30+ Context . JSInterop . Setup < bool > ( "close" , _ => true ) . SetResult ( true ) ;
3031
3132 var service = Context . Services . GetRequiredService < IVideoDevice > ( ) ;
3233 var options = new MediaTrackConstraints ( )
@@ -40,7 +41,8 @@ public async Task Open_Ok()
4041 var open = await service . Open ( options ) ;
4142 Assert . True ( open ) ;
4243
43- await service . Close ( ".bb-video" ) ;
44+ var close = await service . Close ( ".bb-video" ) ;
45+ Assert . True ( close ) ;
4446
4547 Assert . Equal ( "test-device-id" , options . DeviceId ) ;
4648 Assert . Equal ( "user" , options . FacingMode ) ;
You can’t perform that action at this time.
0 commit comments