@@ -435,14 +435,14 @@ describe('vue-loader', function () {
435435 expect ( includeDataURL ( vnode . children [ 2 ] . children [ 0 ] . data . attrs [ 'xlink:href' ] ) ) . to . equal ( true )
436436 var style = window . document . querySelector ( 'style' ) . textContent
437437
438- let dataURL = vnode . children [ 0 ] . data . attrs . src
438+ const dataURL = vnode . children [ 0 ] . data . attrs . src
439439
440440 // image tag with srcset
441- expect ( vnode . children [ 4 ] . data . attrs . srcset ) . to . equal ( dataURL + " 2x" )
441+ expect ( vnode . children [ 4 ] . data . attrs . srcset ) . to . equal ( dataURL + ' 2x' )
442442 // image tag with srcset with two candidates
443- expect ( vnode . children [ 6 ] . data . attrs . srcset ) . to . equal ( dataURL + " 2x, " + dataURL + " 3x" )
443+ expect ( vnode . children [ 6 ] . data . attrs . srcset ) . to . equal ( dataURL + ' 2x, ' + dataURL + ' 3x' )
444444 // image tag with multiline srcset
445- expect ( vnode . children [ 8 ] . data . attrs . srcset ) . to . equal ( dataURL + " 2x, " + dataURL + " 3x" )
445+ expect ( vnode . children [ 8 ] . data . attrs . srcset ) . to . equal ( dataURL + ' 2x, ' + dataURL + ' 3x' )
446446
447447 // style
448448 expect ( includeDataURL ( style ) ) . to . equal ( true )
@@ -960,6 +960,30 @@ describe('vue-loader', function () {
960960 } )
961961 } )
962962
963+ it ( 'cacheBusting: false' , done => {
964+ test ( {
965+ entry : './test/fixtures/basic.vue' ,
966+ vue : {
967+ cacheBusting : false
968+ }
969+ } , ( window , module , rawModule ) => {
970+ var vnode = mockRender ( module , {
971+ msg : 'hi'
972+ } )
973+
974+ // <h2 class="red">{{msg}}</h2>
975+ expect ( vnode . tag ) . to . equal ( 'h2' )
976+ expect ( vnode . data . staticClass ) . to . equal ( 'red' )
977+ expect ( vnode . children [ 0 ] . text ) . to . equal ( 'hi' )
978+
979+ expect ( module . data ( ) . msg ) . to . contain ( 'Hello from Component A!' )
980+ var style = window . document . querySelector ( 'style' ) . textContent
981+ style = normalizeNewline ( style )
982+ expect ( style ) . to . contain ( 'comp-a h2 {\n color: #f00;\n}' )
983+ done ( )
984+ } )
985+ } )
986+
963987 // Vue required tests for more complete test cases
964988 // this test case requires Vue >= 2.5
965989 if ( Number ( Vue . version . split ( '.' ) [ 1 ] ) >= 5 ) {
0 commit comments