File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ describe('Icon.vue', () => {
8
8
beforeEach ( ( ) => {
9
9
cmp = shallow ( Icon , {
10
10
propsData : {
11
+ title : 'test text' ,
11
12
name : 'type'
12
13
}
13
14
} )
@@ -17,6 +18,10 @@ describe('Icon.vue', () => {
17
18
expect ( cmp . vm . name ) . toEqual ( 'type' )
18
19
} )
19
20
21
+ it ( 'equals title to `test text`' , ( ) => {
22
+ expect ( cmp . vm . title ) . toEqual ( 'test text' )
23
+ } )
24
+
20
25
it ( 'should render correct contents' , ( ) => {
21
26
const renderer = createRenderer ( )
22
27
renderer . renderToString ( cmp . vm , ( err , str ) => {
Original file line number Diff line number Diff line change 1
1
// Jest Snapshot v1, https://goo.gl/fbAQLP
2
2
3
3
exports [` Icon.vue should render correct contents 1` ] = `
4
- <i class = " icon svg-icon" >
4
+ <i title = " test text " class = " icon svg-icon" >
5
5
<svg xmlns = " http://www.w3.org/2000/svg" width = " 24" height = " 24" viewBox = " 0 0 24 24" fill = " none" stroke = " currentColor" stroke-width = " 2" stroke-linecap = " round" stroke-linejoin = " round" class = " feather feather-type" >
6
6
<polyline points = " 4 7 4 4 20 4 20 7" ></polyline >
7
7
<line x1 = " 9" y1 = " 20" x2 = " 15" y2 = " 20" ></line >
You can’t perform that action at this time.
0 commit comments