Skip to content

Commit

Permalink
chore: implemented portal configuration integration tests (#736)
Browse files Browse the repository at this point in the history
Co-authored-by: kjetilhau <[email protected]>
  • Loading branch information
kjetilhau and kjetilhau authored Sep 4, 2024
1 parent a4a6ebc commit 482ba6d
Show file tree
Hide file tree
Showing 3 changed files with 294 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .changeset/pr-736-2050972397.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@

---
---
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,18 @@ public static void AssertPortalValues(ApiPortal? portal)
Assert.IsNotNull(portal);
}


public static void AssertPortalConfigurationValues(ApiPortalConfiguration? portalConfiguration, bool acceptNullValues)
{
if (portalConfiguration == null)
{
Assert.Fail();
}

if (!acceptNullValues)
{
Assert.IsNotNull(portalConfiguration.Router);
}
}

public static void AssertPortalAppValues(ApiPortalApp? app)
{
Expand Down
Loading

0 comments on commit 482ba6d

Please sign in to comment.