Complete management API and CLI command parity
This commit is contained in:
@@ -61,7 +61,7 @@ public class JsInteropLoggingTests : BunitContext
|
||||
JSInterop.SetupVoid("document.body.classList.add", "modal-open")
|
||||
.SetException(new JSException("body lock failed"));
|
||||
// Focus and any other interop is harmless here — allow it loosely.
|
||||
JSInterop.SetupVoid("document.body.classList.remove", "modal-open");
|
||||
JSInterop.SetupVoid("document.body.classList.remove", "modal-open").SetVoidResult();
|
||||
|
||||
var cut = Render<DiffDialog>();
|
||||
cut.InvokeAsync(() => cut.Instance.ShowAsync("Compare", "a", "b"));
|
||||
@@ -84,7 +84,7 @@ public class JsInteropLoggingTests : BunitContext
|
||||
JSInterop.Mode = JSRuntimeMode.Strict;
|
||||
JSInterop.SetupVoid("document.body.classList.add", "modal-open")
|
||||
.SetException(new JSDisconnectedException("circuit gone"));
|
||||
JSInterop.SetupVoid("document.body.classList.remove", "modal-open");
|
||||
JSInterop.SetupVoid("document.body.classList.remove", "modal-open").SetVoidResult();
|
||||
|
||||
var cut = Render<DiffDialog>();
|
||||
cut.InvokeAsync(() => cut.Instance.ShowAsync("Compare", "a", "b"));
|
||||
|
||||
Reference in New Issue
Block a user