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
10
10
[ JsonSubtypes . KnownSubType ( typeof ( ChildPageBlock ) , BlockType . ChildPage ) ]
11
11
[ JsonSubtypes . KnownSubType ( typeof ( ChildDatabaseBlock ) , BlockType . ChildDatabase ) ]
12
12
[ JsonSubtypes . KnownSubType ( typeof ( CodeBlock ) , BlockType . Code ) ]
13
+ [ JsonSubtypes . KnownSubType ( typeof ( DividerBlock ) , BlockType . Divider ) ]
13
14
[ JsonSubtypes . KnownSubType ( typeof ( EmbedBlock ) , BlockType . Embed ) ]
14
15
[ JsonSubtypes . KnownSubType ( typeof ( EquationBlock ) , BlockType . Equation ) ]
15
16
[ 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()
258
258
var updatedBlock = ( EquationBlock ) block ;
259
259
Assert . Equal ( "e=mc^2" , updatedBlock . Equation . Expression ) ;
260
260
} )
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
+ } )
261
271
}
262
272
} ;
263
273
}
You can’t perform that action at this time.
0 commit comments