File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
Src/Notion.Client/Models/Blocks
Test/Notion.IntegrationTests Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ namespace Notion.Client
1010 [ JsonSubtypes . KnownSubType ( typeof ( ChildPageBlock ) , BlockType . ChildPage ) ]
1111 [ JsonSubtypes . KnownSubType ( typeof ( ChildDatabaseBlock ) , BlockType . ChildDatabase ) ]
1212 [ JsonSubtypes . KnownSubType ( typeof ( CodeBlock ) , BlockType . Code ) ]
13+ [ JsonSubtypes . KnownSubType ( typeof ( DividerBlock ) , BlockType . Divider ) ]
1314 [ JsonSubtypes . KnownSubType ( typeof ( EmbedBlock ) , BlockType . Embed ) ]
1415 [ JsonSubtypes . KnownSubType ( typeof ( EquationBlock ) , BlockType . Equation ) ]
1516 [ JsonSubtypes . KnownSubType ( typeof ( FileBlock ) , BlockType . File ) ]
Original file line number Diff line number Diff line change @@ -239,6 +239,16 @@ private static IEnumerable<object[]> BlockData()
239239 Assert . Equal ( "https://github.com/notion-dotnet/notion-sdk-net" , updatedBlock . Bookmark . Url ) ;
240240 Assert . Equal ( "Github" , updatedBlock . Bookmark . Caption . OfType < RichTextText > ( ) . First ( ) . Text . Content ) ;
241241 } )
242+ } ,
243+ new object [ ] {
244+ new DividerBlock {
245+ Divider = new DividerBlock . Data ( )
246+ } ,
247+ new DividerUpdateBlock ( ) ,
248+ new Action < Block > ( ( block ) => {
249+ Assert . NotNull ( block ) ;
250+ Assert . IsType < DividerBlock > ( block ) ;
251+ } )
242252 }
243253 } ;
244254 }
You can’t perform that action at this time.
0 commit comments