Skip to content

Commit

Permalink
Move out of the class that is disabled from MT tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
ilonatommy committed Jul 29, 2024
1 parent 8c8dbeb commit 9f0a53e
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,13 @@ public async Task JsExportInt32DiscardNoWait(int value)
res = await invoke(value, echoName);
Assert.Equal<T>(value, res);
}

[Fact]
public async void JSExportCompletedTaskReturnsResolvedPromise()
{
string result = await JavaScriptTestHelper.InvokeReturnCompletedTask();
Assert.Equal("resolved", result);
}
}

[ConditionalClass(typeof(PlatformDetection), nameof(PlatformDetection.IsNotWasmThreadingSupported))]
Expand Down Expand Up @@ -436,12 +443,5 @@ public async Task InternalsVisibleToDoesntBreak()
{
Assert.Equal(JavaScriptLibrary.JavaScriptInterop.ValidationMethod(5, 6), await JavaScriptTestHelper.callJavaScriptLibrary(5, 6));
}

[Fact]
public async void JSExportCompletedTaskReturnsResolvedPromise()
{
string result = await JavaScriptTestHelper.InvokeReturnCompletedTask();
Assert.Equal("resolved", result);
}
}
}

0 comments on commit 9f0a53e

Please sign in to comment.