Skip to content

Commit

Permalink
Fix Functional Test parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
martinrrm committed May 16, 2024
1 parent 575454e commit 341f750
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,18 +113,15 @@ public StaticAssetsTests(ITestOutputHelper testOutputHelper) : base(testOutputHe
},
};

private static readonly IReadOnlyList<string> MinifiedFiles = new[]
{
"Content/gallery/css/bootstrap.min.css",
};

private static readonly HashSet<string> BundleInputPaths = new HashSet<string>(Bundles.SelectMany(x => x.Value));
private static readonly IReadOnlyList<string> MinifiedFiles = new[] { "Content/gallery/css/bootstrap.min.css" };

public static IEnumerable<object[]> AssetData => AssetPaths.Value.Select(x => new object[] { x });
public static IEnumerable<object[]> BundleOutputData => Bundles.Select(x => new object[] { x.Key });
public static IEnumerable<object[]> BundleInputExceptBundleOutputData => BundleInputPaths
.Except(Bundles.Keys.Select(GetUnMinPath))
.Select(x => new object[] { x });
public static IEnumerable<object[]> MinifiedFilesData => MinifiedFiles.Select(x => new object[] { x });

public HttpClient HttpClient { get; }

Expand Down Expand Up @@ -153,7 +150,7 @@ public async Task NoBundleFailsMinification(string bundle)
[Theory]
[Priority(2)]
[Category("P2Tests")]
[MemberData(nameof(MinifiedFiles))]
[MemberData(nameof(MinifiedFilesData))]
public async Task NoFilesFailedMinification(string file)
{
var fileContent = await HttpClient.GetStringAsync(UrlHelper.BaseUrl + file);
Expand Down

0 comments on commit 341f750

Please sign in to comment.