File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed
tests/unit/components/TutorialsOverview Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 10
10
11
11
import { shallowMount } from '@vue/test-utils' ;
12
12
import ResourcesTile from 'docc-render/components/TutorialsOverview/ResourcesTile.vue' ;
13
+ import { flushPromises } from '../../../../test-utils' ;
13
14
14
15
const { Identifier } = ResourcesTile . constants ;
15
16
const {
@@ -115,9 +116,13 @@ describe('ResourcesTile', () => {
115
116
expect ( wrapper . findComponent ( Icon ) . exists ( ) ) . toBe ( true ) ;
116
117
} ;
117
118
assertIconForIdentifier ( DocumentIcon , Identifier . documentation ) ;
119
+ await flushPromises ( ) ;
118
120
assertIconForIdentifier ( DownloadIcon , Identifier . downloads ) ;
121
+ await flushPromises ( ) ;
119
122
assertIconForIdentifier ( ForumIcon , Identifier . forums ) ;
123
+ await flushPromises ( ) ;
120
124
assertIconForIdentifier ( CurlyBracketsIcon , Identifier . sampleCode ) ;
125
+ await flushPromises ( ) ;
121
126
assertIconForIdentifier ( PlayIcon , Identifier . videos ) ;
122
127
} ) ;
123
128
} ) ;
You can’t perform that action at this time.
0 commit comments