We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e52c8e2 commit 24c026aCopy full SHA for 24c026a
test/UnitTest/Extensions/JSModuleExtensionsTest.cs
@@ -19,8 +19,7 @@ public async Task LoadModule_Ok()
19
public async Task LoadModule_Exception()
20
{
21
var jsRuntime = new MockJSRuntime();
22
- var module = await jsRuntime.LoadModule("./mock.js", "test");
23
- Assert.NotNull(module);
+ await Assert.ThrowsAsync<TaskCanceledException>(() => jsRuntime.LoadModule("./mock.js", "test"));
24
}
25
26
[Fact]
0 commit comments