Skip to content

Commit 492c05d

Browse files
author
Dobromir Hristov
committed
refactor: cleanup tests
1 parent 9944c07 commit 492c05d

File tree

5 files changed

+7
-6
lines changed

5 files changed

+7
-6
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import { shallowMount } from '@vue/test-utils';
1212
import DefaultImplementations from 'docc-render/components/DocumentationTopic/DefaultImplementations.vue';
13+
import { TopicStyles } from '@/constants/TopicStyles';
1314

1415
const { TopicsTable } = DefaultImplementations.components;
1516

@@ -41,6 +42,7 @@ describe('DefaultImplementations', () => {
4142
isSymbolBeta: false,
4243
title: 'Default Implementations',
4344
wrapTitle: true,
45+
topicStyle: TopicStyles.list,
4446
});
4547
});
4648
});

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import { shallowMount } from '@vue/test-utils';
1212
import SeeAlso from 'docc-render/components/DocumentationTopic/SeeAlso.vue';
13+
import { TopicStyles } from '@/constants/TopicStyles';
1314

1415
const { TopicsTable } = SeeAlso.components;
1516

@@ -26,6 +27,7 @@ describe('SeeAlso', () => {
2627
sections: [],
2728
title: 'See Also',
2829
wrapTitle: false,
30+
topicStyle: TopicStyles.list,
2931
});
3032
});
3133
});

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* See https://swift.org/LICENSE.txt for license information
88
* See https://swift.org/CONTRIBUTORS.txt for Swift project authors
9-
*/
9+
*/
1010

1111
import { shallowMount } from '@vue/test-utils';
1212
import Topics from 'docc-render/components/DocumentationTopic/Topics.vue';

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
*
77
* See https://swift.org/LICENSE.txt for license information
88
* See https://swift.org/CONTRIBUTORS.txt for Swift project authors
9-
*/
9+
*/
1010

1111
import TopicsLinkCardGrid from '@/components/DocumentationTopic/TopicsLinkCardGrid.vue';
1212
import { shallowMount } from '@vue/test-utils';
@@ -35,7 +35,6 @@ describe('TopicsLinkCardGrid', () => {
3535
const wrapper = createWrapper();
3636
expect(wrapper.find(Row).props()).toEqual({
3737
columns: 3, // compact grid is a 3 column setup
38-
gap: null,
3938
});
4039
const cols = wrapper.findAll(Column);
4140
expect(cols).toHaveLength(2);
@@ -54,7 +53,6 @@ describe('TopicsLinkCardGrid', () => {
5453
});
5554
expect(wrapper.find(Row).props()).toEqual({
5655
columns: 2, // detailed grid is a 2 column setup
57-
gap: null,
5856
});
5957
expect(wrapper.find(TopicsLinkCardGridItem).props('compact')).toBe(false);
6058
});

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

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@
66
*
77
* See https://swift.org/LICENSE.txt for license information
88
* See https://swift.org/CONTRIBUTORS.txt for Swift project authors
9-
*/
9+
*/
1010

1111
import { shallowMount } from '@vue/test-utils';
1212
import TopicsTable from 'docc-render/components/DocumentationTopic/TopicsTable.vue';
1313
import { TopicStyles } from '@/constants/TopicStyles';
1414
import TopicsLinkCardGrid from '@/components/DocumentationTopic/TopicsLinkCardGrid.vue';
15-
import reference from '@/components/ContentNode/Reference';
1615

1716
const {
1817
ContentTable, TopicsLinkBlock, ContentTableSection, ContentNode, WordBreak, LinkableHeading,

0 commit comments

Comments
 (0)