File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,8 @@ describe('nodegen library', function () {
9898 del . sync ( result ) ;
9999 var jsfile = result . replace ( / - [ 0 - 9 ] + \. [ 0 - 9 ] + \. [ 0 - 9 ] + \. t g z $ / , '/node.js' ) ;
100100 fs . readFileSync ( jsfile ) . toString ( ) . split ( '\n' ) . length . should . be . eql ( 1 ) ;
101- del . sync ( jsfile ) ;
101+ result = result . replace ( / - [ 0 - 9 ] + \. [ 0 - 9 ] + \. [ 0 - 9 ] + \. t g z $ / , '' ) ;
102+ del . sync ( result ) ;
102103 done ( ) ;
103104 } ) ;
104105 } ) ;
@@ -145,7 +146,8 @@ describe('nodegen library', function () {
145146 del . sync ( result ) ;
146147 var jsfile = result . replace ( / - [ 0 - 9 ] + \. [ 0 - 9 ] + \. [ 0 - 9 ] + \. t g z $ / , '/node.js' ) ;
147148 fs . readFileSync ( jsfile ) . toString ( ) . split ( '\n' ) . length . should . be . eql ( 1 ) ;
148- del . sync ( jsfile ) ;
149+ result = result . replace ( / - [ 0 - 9 ] + \. [ 0 - 9 ] + \. [ 0 - 9 ] + \. t g z $ / , '' ) ;
150+ del . sync ( result ) ;
149151 done ( ) ;
150152 } ) ;
151153 } ) ;
You can’t perform that action at this time.
0 commit comments