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 @@ -258,6 +258,16 @@ private static IEnumerable<object[]> BlockData()
258258 var updatedBlock = ( EquationBlock ) block ;
259259 Assert . Equal ( "e=mc^2" , updatedBlock . Equation . Expression ) ;
260260 } )
261+ } ,
262+ new object [ ] {
263+ new DividerBlock {
264+ Divider = new DividerBlock . Data ( )
265+ } ,
266+ new DividerUpdateBlock ( ) ,
267+ new Action < Block > ( ( block ) => {
268+ Assert . NotNull ( block ) ;
269+ Assert . IsType < DividerBlock > ( block ) ;
270+ } )
261271 }
262272 } ;
263273 }
You can’t perform that action at this time.
0 commit comments