Skip to content

Commit

Permalink
Update unit tests to target multiple frameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
patchoulish committed Nov 24, 2024
1 parent d20a53d commit 77fc17e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
3 changes: 2 additions & 1 deletion source/Firecrawl.Tests/Firecrawl.Tests.csproj
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>net8.0</TargetFramework>
<TargetFrameworks>net6.0;net7.0;net8.0;net9.0</TargetFrameworks>
<RootNamespace>Firecrawl</RootNamespace>
<LangVersion>latest</LangVersion>

<IsPackable>false</IsPackable>
<IsTestProject>true</IsTestProject>
Expand Down
13 changes: 7 additions & 6 deletions source/Firecrawl.Tests/FirecrawlServiceTests.Scrape.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
using System.Threading.Tasks;
using System.Collections;
using System.Collections.Generic;
using System.Collections.Immutable;

using Microsoft;
using Microsoft.VisualStudio;
Expand All @@ -22,10 +23,10 @@ partial class FirecrawlServiceTests
new FirecrawlScrapeOptions()
{
Url = new Uri("https://www.reddit.com/"),
Formats =
[
Formats = new FirecrawlFormat[]
{
FirecrawlFormat.Markdown
],
}.ToImmutableArray(),
}
],
];
Expand All @@ -39,10 +40,10 @@ partial class FirecrawlServiceTests
new FirecrawlScrapeOptions()
{
Url = new Uri("https://en.wikipedia.org/wiki/Main_Page"),
Formats =
[
Formats = new FirecrawlFormat[]
{
FirecrawlFormat.Markdown
],
}.ToImmutableArray(),
}
],
];
Expand Down

0 comments on commit 77fc17e

Please sign in to comment.