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 ba02b27 commit 035b929Copy full SHA for 035b929
test/UnitTest/Extensions/JSModuleExtensionsTest.cs
@@ -14,13 +14,10 @@ public async Task LoadModule_Ok()
14
{
15
var jsRuntime = Context.Services.GetRequiredService<IJSRuntime>();
16
await jsRuntime.LoadModule("./mock.js", "test");
17
- }
18
19
- [Fact]
20
- public async Task LoadModule_Exception()
21
- {
22
- var jsRuntime = new MockJSRuntime();
23
- await Assert.ThrowsAsync<TaskCanceledException>(() => jsRuntime.LoadModule("./mock.js", "test"));
+ var jsRuntime1 = new MockJSRuntime();
+ var module = await jsRuntime1.LoadModule("./mock.js", "test");
+ Assert.NotNull(module);
24
25
var jsRuntime2 = new JSExceptionJSRuntime();
26
await Assert.ThrowsAsync<JSException>(() => jsRuntime2.LoadModule("./mock.js", "test"));
0 commit comments