@@ -106,6 +106,7 @@ describe('TopicsLinkBlock', () => {
106
106
topic : {
107
107
title : 'Foobarbaz' ,
108
108
identifier : 'doc://com.example.documentation/foo/bar/baz' ,
109
+ kind : TopicKind . article ,
109
110
type : ReferenceType . link ,
110
111
url : 'https://foo.bar' ,
111
112
} ,
@@ -219,6 +220,8 @@ describe('TopicsLinkBlock', () => {
219
220
topic : {
220
221
title : 'Foobarbaz' ,
221
222
url : '/foo/bar/baz' ,
223
+ identifier : 'doc://com.example.documentation/foo/bar/baz' ,
224
+ kind : TopicKind . article ,
222
225
role : TopicKind . article ,
223
226
} ,
224
227
} ) ;
@@ -255,6 +258,8 @@ describe('TopicsLinkBlock', () => {
255
258
topic : {
256
259
title : 'Foobarbaz' ,
257
260
url : '/foo/bar/baz' ,
261
+ identifier : 'doc://com.example.documentation/foo/bar/baz' ,
262
+ kind : TopicKind . article ,
258
263
role : TopicKind . article ,
259
264
abstract : [ ] ,
260
265
} ,
@@ -273,7 +278,8 @@ describe('TopicsLinkBlock', () => {
273
278
} ) ;
274
279
275
280
it ( 'does not render a `ContentNode` without an abstract' , async ( ) => {
276
- await wrapper . setProps ( { topic : { ...propsData . topic , abstract : undefined } } ) ;
281
+ const { abstract, ...topicWithoutAbstract } = propsData . topic ;
282
+ await wrapper . setProps ( { topic : topicWithoutAbstract } ) ;
277
283
expect ( wrapper . findComponent ( ContentNode ) . exists ( ) ) . toBe ( false ) ;
278
284
} ) ;
279
285
0 commit comments