Skip to content

Commit

Permalink
Merge pull request #321 from notion-dotnet/319-fix-broken-integration…
Browse files Browse the repository at this point in the history
…-tests

fix broken integration tests
  • Loading branch information
KoditkarVedant authored Sep 10, 2022
2 parents 22a79cf + bd5054d commit 1eb0428
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Test/Notion.IntegrationTests/IPageClientTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public async Task CreateAsync_CreatesANewPage()
.DatabaseId.Should().Be(_databaseId);

page.Properties.Should().ContainKey("Name");
var pageProperty = page.Properties["Name"].Should().BeOfType<PagePropertyOnId>().Subject;
var pageProperty = page.Properties["Name"].Should().BeOfType<PropertyValue>().Subject;

var titleProperty = (ListPropertyItem)await _client.Pages.RetrievePagePropertyItem(new RetrievePropertyItemParameters
{
Expand Down Expand Up @@ -105,7 +105,7 @@ public async Task Bug_unable_to_create_page_with_select_property()
.DatabaseId.Should().Be(_databaseId);

page.Properties.Should().ContainKey("Name");
var pageProperty = page.Properties["Name"].Should().BeOfType<PagePropertyOnId>().Subject;
var pageProperty = page.Properties["Name"].Should().BeOfType<PropertyValue>().Subject;

var titleProperty = (ListPropertyItem)await _client.Pages.RetrievePagePropertyItem(new RetrievePropertyItemParameters
{
Expand Down

0 comments on commit 1eb0428

Please sign in to comment.