Skip to content

Commit 1efc7eb

Browse files
Add integration to test audio block type support ✅
1 parent f345df6 commit 1efc7eb

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

Test/Notion.IntegrationTests/IBlocksClientTests.cs

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,30 @@ private static IEnumerable<object[]> BlockData()
268268
Assert.NotNull(block);
269269
Assert.IsType<DividerBlock>(block);
270270
})
271+
},
272+
new object[] {
273+
new AudioBlock {
274+
Audio = new ExternalFile {
275+
External = new ExternalFile.Info {
276+
Url = "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-1.mp3"
277+
}
278+
}
279+
},
280+
new AudioUpdateBlock {
281+
Audio = new ExternalFileInput {
282+
External = new ExternalFileInput.Data {
283+
Url = "https://www.soundhelix.com/examples/mp3/SoundHelix-Song-3.mp3"
284+
}
285+
}
286+
},
287+
new Action<Block>((block) => {
288+
block.Should().NotBeNull();
289+
290+
block.Should().BeOfType<AudioBlock>().Subject
291+
.Audio.Should().BeOfType<ExternalFile>().Subject
292+
.External.Url.Should().Be("https://www.soundhelix.com/examples/mp3/SoundHelix-Song-3.mp3");
293+
294+
})
271295
}
272296
};
273297
}

0 commit comments

Comments
 (0)