@@ -33,7 +33,7 @@ describe('empty data', function () {
3333 stream . on ( 'end' , cb ) ;
3434 stream . write ( new Vinyl ( {
3535 path : 'file.html' ,
36- contents : new Buffer ( 'hi {{name}}' )
36+ contents : Buffer . from ( 'hi {{name}}' )
3737 } ) ) ;
3838 stream . end ( ) ;
3939 } ) ;
@@ -46,7 +46,7 @@ describe('empty data', function () {
4646 stream . on ( 'end' , cb ) ;
4747 stream . write ( new Vinyl ( {
4848 path : 'file.html' ,
49- contents : new Buffer ( '{% if name %}OK{% endif %}' )
49+ contents : Buffer . from ( '{% if name %}OK{% endif %}' )
5050 } ) ) ;
5151 stream . end ( ) ;
5252 } ) ;
@@ -59,7 +59,7 @@ describe('empty data', function () {
5959 stream . on ( 'end' , cb ) ;
6060 stream . write ( new Vinyl ( {
6161 path : 'file.html' ,
62- contents : new Buffer ( '{{name | add: "me", "na"}}' )
62+ contents : Buffer . from ( '{{name | add: "me", "na"}}' )
6363 } ) ) ;
6464 stream . end ( ) ;
6565 } ) ;
@@ -74,7 +74,7 @@ describe('with options', function () {
7474 stream . on ( 'end' , cb ) ;
7575 stream . write ( new Vinyl ( {
7676 path : 'file.html' ,
77- contents : new Buffer ( 'hi {{name}}' )
77+ contents : Buffer . from ( 'hi {{name}}' )
7878 } ) ) ;
7979 stream . end ( ) ;
8080 } ) ;
@@ -87,7 +87,7 @@ describe('with options', function () {
8787 stream . on ( 'end' , cb ) ;
8888 stream . write ( new Vinyl ( {
8989 path : 'file.html' ,
90- contents : new Buffer ( '{{name | test}}' )
90+ contents : Buffer . from ( '{{name | test}}' )
9191 } ) ) ;
9292 stream . end ( ) ;
9393 } ) ;
@@ -100,9 +100,9 @@ describe('with options', function () {
100100 stream . on ( 'end' , cb ) ;
101101 stream . write ( new Vinyl ( {
102102 path : 'file.html' ,
103- contents : new Buffer ( '{% upper name %}' )
103+ contents : Buffer . from ( '{% upper name %}' )
104104 } ) ) ;
105105 stream . end ( ) ;
106106 } )
107107
108- } ) ;
108+ } ) ;
0 commit comments