@@ -6,7 +6,7 @@ const rimraf = require('rimraf');
66const promisify = require ( '../src/utils/promisify' ) ;
77const ncp = promisify ( require ( 'ncp' ) ) ;
88const WebSocket = require ( 'ws' ) ;
9- const parseJson = require ( 'parse-json ' ) ;
9+ const json5 = require ( 'json5 ' ) ;
1010
1111describe ( 'hmr' , function ( ) {
1212 let b , ws ;
@@ -45,7 +45,7 @@ describe('hmr', function() {
4545 'exports.a = 5; exports.b = 5;'
4646 ) ;
4747
48- let msg = parseJson ( await nextEvent ( ws , 'message' ) ) ;
48+ let msg = json5 . parse ( await nextEvent ( ws , 'message' ) ) ;
4949 assert . equal ( msg . type , 'update' ) ;
5050 assert . equal ( msg . assets . length , 1 ) ;
5151 assert . equal ( msg . assets [ 0 ] . generated . js , 'exports.a = 5; exports.b = 5;' ) ;
@@ -65,7 +65,7 @@ describe('hmr', function() {
6565 'require("fs"); exports.a = 5; exports.b = 5;'
6666 ) ;
6767
68- let msg = parseJson ( await nextEvent ( ws , 'message' ) ) ;
68+ let msg = json5 . parse ( await nextEvent ( ws , 'message' ) ) ;
6969 assert . equal ( msg . type , 'update' ) ;
7070 assert . equal ( msg . assets . length , 2 ) ;
7171 } ) ;
0 commit comments