11'use strict' ;
22
3- var path = require ( 'path' ) ,
4- Vinyl = require ( 'vinyl' ) ,
5- fs = require ( 'fs' ) ,
6- test = require ( 'tape' ) ,
7- inlinesource = require ( '../' ) ;
3+ const path = require ( 'path' ) ;
4+ const Vinyl = require ( 'vinyl' ) ;
5+ const fs = require ( 'fs' ) ;
6+ const test = require ( 'tape' ) ;
7+ const inlinesource = require ( '../' ) ;
88
99function getFile ( filePath , contents ) {
1010 return new Vinyl ( {
@@ -60,7 +60,7 @@ test('works with relative paths', function (t) {
6060} ) ;
6161
6262test ( 'inlines assets without minification' , function ( t ) {
63- var stream = inlinesource ( {
63+ const stream = inlinesource ( {
6464 compress : false
6565 } ) ;
6666
@@ -69,17 +69,17 @@ test('inlines assets without minification', function (t) {
6969
7070test ( 'throws when trying to compress non-ES5 syntax' , function ( t ) {
7171 t . plan ( 1 ) ;
72-
73- var stream = inlinesource ( { compress : true } ) ;
74-
72+
73+ const stream = inlinesource ( { compress : true } ) ;
74+
7575 stream . on ( 'error' , function ( err ) {
7676 t . pass ( ) ;
7777 } ) ;
78-
78+
7979 stream . on ( 'finish' , function ( ) {
8080 t . end ( ) ;
8181 } ) ;
82-
82+
8383 stream . write ( getFixture ( 'script-es6.html' ) ) ;
8484 stream . end ( ) ;
8585} ) ;
0 commit comments