Complete management API and CLI command parity
This commit is contained in:
+2
-2
@@ -37,7 +37,7 @@ public class TreeViewStorageResilienceTests : BunitContext
|
||||
// A garbage payload that is not valid JSON for a List<string>.
|
||||
JSInterop.Setup<string?>("treeviewStorage.load", _ => true)
|
||||
.SetResult("{not json at all]");
|
||||
JSInterop.SetupVoid("treeviewStorage.save", _ => true);
|
||||
JSInterop.SetupVoid("treeviewStorage.save", _ => true).SetVoidResult();
|
||||
|
||||
// Pre-fix: OnAfterRenderAsync threw JsonException out of the unguarded
|
||||
// Deserialize call. Post-fix: the corrupt payload is ignored.
|
||||
@@ -53,7 +53,7 @@ public class TreeViewStorageResilienceTests : BunitContext
|
||||
// Valid JSON, but not a List<string> — an object, not an array.
|
||||
JSInterop.Setup<string?>("treeviewStorage.load", _ => true)
|
||||
.SetResult("{\"unexpected\": true}");
|
||||
JSInterop.SetupVoid("treeviewStorage.save", _ => true);
|
||||
JSInterop.SetupVoid("treeviewStorage.save", _ => true).SetVoidResult();
|
||||
|
||||
var cut = BuildTree();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user