-
-
Notifications
You must be signed in to change notification settings - Fork 118
Closed
Labels
enhancementNew feature or requestNew feature or requestinvestigateThis issue require further investigation before closing.This issue require further investigation before closing.
Description
Render a component with the <InputFile> component inside requires additional set up, that bUnit should provide out of the box.
The current solution is to provide a mock of a IOptions<RemoteBrowserFileStreamOptions> and configure the JSInterop to handle the <InputFile> components JSInterop invocation. E.g.
var optionsMock = Substitute.For<IOptions<RemoteBrowserFileStreamOptions>>();
Services.AddSingleton<IOptions<RemoteBrowserFileStreamOptions>>(optionsMock);
JSInterop.SetupVoid("Blazor._internal.InputFile.init", x => true);This will allow the component to render, but additional steps might be needed to test the "input" part of the component.
Related: #314
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requestinvestigateThis issue require further investigation before closing.This issue require further investigation before closing.