OrchardCore icon indicating copy to clipboard operation
OrchardCore copied to clipboard

Add unit tests for Script and Style tag helpers

Open Skrypt opened this issue 3 months ago • 1 comments

We need to add unit test to test for these:

A script or a style tag that has a type="module" param should not spread it to it's set script dependencies. A script or a style tag that has a At="Footer" should spread to it's dependencies (Location on tag helper).

Example of ScriptTagHelper unit test: https://github.com/dotnet/aspnetcore/blob/main/src/Mvc/Mvc.TagHelpers/test/ScriptTagHelperTest.cs

Did start working on it last night based on that file.

Skrypt avatar Mar 13 '24 20:03 Skrypt