Skip to content

Commit ddb546b

Browse files
committed
Fix console error warnings for TopicsLinkBlock.spec.js
1 parent bb2e5f2 commit ddb546b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

tests/unit/components/DocumentationTopic/TopicsLinkBlock.spec.js

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,7 @@ describe('TopicsLinkBlock', () => {
106106
topic: {
107107
title: 'Foobarbaz',
108108
identifier: 'doc://com.example.documentation/foo/bar/baz',
109+
kind: TopicKind.article,
109110
type: ReferenceType.link,
110111
url: 'https://foo.bar',
111112
},
@@ -219,6 +220,8 @@ describe('TopicsLinkBlock', () => {
219220
topic: {
220221
title: 'Foobarbaz',
221222
url: '/foo/bar/baz',
223+
identifier: 'doc://com.example.documentation/foo/bar/baz',
224+
kind: TopicKind.article,
222225
role: TopicKind.article,
223226
},
224227
});
@@ -255,6 +258,8 @@ describe('TopicsLinkBlock', () => {
255258
topic: {
256259
title: 'Foobarbaz',
257260
url: '/foo/bar/baz',
261+
identifier: 'doc://com.example.documentation/foo/bar/baz',
262+
kind: TopicKind.article,
258263
role: TopicKind.article,
259264
abstract: [],
260265
},
@@ -273,7 +278,8 @@ describe('TopicsLinkBlock', () => {
273278
});
274279

275280
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 });
277283
expect(wrapper.findComponent(ContentNode).exists()).toBe(false);
278284
});
279285

0 commit comments

Comments
 (0)