@@ -435,14 +435,14 @@ describe('vue-loader', function () {
435
435
expect ( includeDataURL ( vnode . children [ 2 ] . children [ 0 ] . data . attrs [ 'xlink:href' ] ) ) . to . equal ( true )
436
436
var style = window . document . querySelector ( 'style' ) . textContent
437
437
438
- let dataURL = vnode . children [ 0 ] . data . attrs . src
438
+ const dataURL = vnode . children [ 0 ] . data . attrs . src
439
439
440
440
// 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' )
442
442
// 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' )
444
444
// 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' )
446
446
447
447
// style
448
448
expect ( includeDataURL ( style ) ) . to . equal ( true )
@@ -960,6 +960,30 @@ describe('vue-loader', function () {
960
960
} )
961
961
} )
962
962
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
+
963
987
// Vue required tests for more complete test cases
964
988
// this test case requires Vue >= 2.5
965
989
if ( Number ( Vue . version . split ( '.' ) [ 1 ] ) >= 5 ) {
0 commit comments