Skip to content

Commit

Permalink
Updating unit tests after introduction of GenerateFeeds warning
Browse files Browse the repository at this point in the history
  • Loading branch information
daveaglick committed Jun 14, 2023
1 parent 9c673fe commit 7f3b586
Showing 1 changed file with 15 additions and 5 deletions.
20 changes: 15 additions & 5 deletions tests/Statiq.Web.Tests/Pipelines/FeedsFixture.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,9 @@ public class ExecuteTests : DataFixture
public async Task AllowsStringIds()
{
// Given
App.Bootstrapper bootstrapper = App.Bootstrapper.Factory.CreateWeb(Array.Empty<string>());
App.Bootstrapper bootstrapper = App.Bootstrapper.Factory
.CreateWeb(Array.Empty<string>())
.AddSetting(Keys.Host, "statiq.dev");
TestFileProvider fileProvider = new TestFileProvider
{
{ "/input/foo.md", "Hi!" },
Expand All @@ -44,7 +46,9 @@ public async Task AllowsStringIds()
public async Task ExcludesAssetContentType()
{
// Given
App.Bootstrapper bootstrapper = App.Bootstrapper.Factory.CreateWeb(Array.Empty<string>());
App.Bootstrapper bootstrapper = App.Bootstrapper.Factory
.CreateWeb(Array.Empty<string>())
.AddSetting(Keys.Host, "statiq.dev");
TestFileProvider fileProvider = new TestFileProvider
{
{ "/input/foo.md", "Hi!" },
Expand All @@ -68,7 +72,9 @@ public async Task ExcludesAssetContentType()
public async Task ToggleFeedWithPath()
{
// Given
App.Bootstrapper bootstrapper = App.Bootstrapper.Factory.CreateWeb(Array.Empty<string>());
App.Bootstrapper bootstrapper = App.Bootstrapper.Factory
.CreateWeb(Array.Empty<string>())
.AddSetting(Keys.Host, "statiq.dev");
TestFileProvider fileProvider = new TestFileProvider
{
{ "/input/foo.md", "Hi!" },
Expand All @@ -95,7 +101,9 @@ public async Task ShouldSetCorrectFeedTitle(
string feedTitle, string title, string siteTitle, string expected)
{
// Given
App.Bootstrapper bootstrapper = App.Bootstrapper.Factory.CreateWeb(Array.Empty<string>());
App.Bootstrapper bootstrapper = App.Bootstrapper.Factory
.CreateWeb(Array.Empty<string>())
.AddSetting(Keys.Host, "statiq.dev");
if (siteTitle is object)
{
bootstrapper.AddSetting(WebKeys.SiteTitle, siteTitle);
Expand Down Expand Up @@ -128,7 +136,9 @@ public async Task ShouldSetCorrectFeedDescription(
string feedDescription, string description, string siteDescription, string expected)
{
// Given
App.Bootstrapper bootstrapper = App.Bootstrapper.Factory.CreateWeb(Array.Empty<string>());
App.Bootstrapper bootstrapper = App.Bootstrapper.Factory
.CreateWeb(Array.Empty<string>())
.AddSetting(Keys.Host, "statiq.dev");
if (siteDescription is object)
{
bootstrapper.AddSetting(WebKeys.SiteDescription, siteDescription);
Expand Down

0 comments on commit 7f3b586

Please sign in to comment.