@@ -58,27 +58,27 @@ test('generates source maps using src attributes', () => {
5858
5959test ( 'processes .vue file using jsx' , ( ) => {
6060 const wrapper = mount ( Jsx )
61- expect ( wrapper . is ( 'div' ) ) . toBeTruthy ( )
61+ expect ( wrapper . element . tagName ) . toBe ( 'DIV' )
6262} )
6363
6464test ( 'processes extended functions' , ( ) => {
6565 const wrapper = mount ( Constructor )
66- expect ( wrapper . is ( 'div' ) ) . toBeTruthy ( )
66+ expect ( wrapper . element . tagName ) . toBe ( 'DIV' )
6767} )
6868
6969test ( 'processes .vue file with lang set to coffee' , ( ) => {
7070 const wrapper = mount ( Coffee )
71- expect ( wrapper . is ( 'div' ) ) . toBeTruthy ( )
71+ expect ( wrapper . element . tagName ) . toBe ( 'DIV' )
7272} )
7373
7474test ( 'processes .vue file with lang set to coffeescript' , ( ) => {
7575 const wrapper = mount ( CoffeeScript )
76- expect ( wrapper . is ( 'div' ) ) . toBeTruthy ( )
76+ expect ( wrapper . element . tagName ) . toBe ( 'DIV' )
7777} )
7878
7979test ( 'processes .vue files with lang set to typescript' , ( ) => {
8080 const wrapper = mount ( TypeScript )
81- expect ( wrapper . is ( 'div' ) ) . toBeTruthy ( )
81+ expect ( wrapper . element . tagName ) . toBe ( 'DIV' )
8282} )
8383
8484test ( 'processes functional components' , ( ) => {
@@ -106,29 +106,29 @@ test('processes SFC with functional template from parent', () => {
106106
107107test ( 'handles missing script block' , ( ) => {
108108 const wrapper = mount ( NoScript )
109- expect ( wrapper . contains ( 'footer' ) )
109+ expect ( wrapper . element . tagName ) . toBe ( 'FOOTER' )
110110} )
111111
112112test ( 'processes .vue file with jade template' , ( ) => {
113113 const wrapper = mount ( Jade )
114- expect ( wrapper . is ( 'div' ) ) . toBeTruthy ( )
114+ expect ( wrapper . element . tagName ) . toBe ( 'DIV' )
115115 expect ( wrapper . classes ( ) ) . toContain ( 'jade' )
116116} )
117117
118118test ( 'processes pug templates' , ( ) => {
119119 const wrapper = mount ( Pug )
120- expect ( wrapper . is ( 'div' ) ) . toBeTruthy ( )
120+ expect ( wrapper . element . tagName ) . toBe ( 'DIV' )
121121 expect ( wrapper . classes ( ) ) . toContain ( 'pug-base' )
122122 expect ( wrapper . find ( '.pug-extended' ) . exists ( ) ) . toBeTruthy ( )
123123} )
124124
125125test ( 'supports relative paths when extending templates from .pug files' , ( ) => {
126126 const wrapper = mount ( PugRelative )
127- expect ( wrapper . is ( 'div' ) ) . toBeTruthy ( )
127+ expect ( wrapper . element . tagName ) . toBe ( 'DIV' )
128128 expect ( wrapper . find ( '.pug-relative-base' ) . exists ( ) ) . toBeTruthy ( )
129129} )
130130
131131test ( 'processes SFC with no template' , ( ) => {
132132 const wrapper = mount ( RenderFunction )
133- expect ( wrapper . is ( 'section' ) ) . toBe ( true )
133+ expect ( wrapper . element . tagName ) . toBe ( 'SECTION' )
134134} )
0 commit comments