@@ -141,7 +141,7 @@ describe('Unit: Utils > local-process', function () {
141
141
expect ( error . message ) . to . equal ( 'An error occurred while starting Ghost.' ) ;
142
142
expect ( spawnStub . calledOnce ) . to . be . true ;
143
143
expect ( cp . stderr . on . calledOnce ) . to . be . true ;
144
- expect ( writeFileStub . calledWithExactly ( '/var/www/ghost/.ghostpid' , 42 ) ) . to . be . true ;
144
+ expect ( writeFileStub . calledWithExactly ( '/var/www/ghost/.ghostpid' , '42' ) ) . to . be . true ;
145
145
done ( ) ;
146
146
} ) ;
147
147
@@ -173,7 +173,7 @@ describe('Unit: Utils > local-process', function () {
173
173
expect ( error . message ) . to . equal ( 'Ghost process exited with code: 1' ) ;
174
174
expect ( spawnStub . calledOnce ) . to . be . true ;
175
175
expect ( cp . stderr . on . calledOnce ) . to . be . true ;
176
- expect ( writeFileStub . calledWithExactly ( '/var/www/ghost/.ghostpid' , 42 ) ) . to . be . true ;
176
+ expect ( writeFileStub . calledWithExactly ( '/var/www/ghost/.ghostpid' , '42' ) ) . to . be . true ;
177
177
expect ( removeStub . calledWithExactly ( '/var/www/ghost/.ghostpid' ) ) . to . be . true ;
178
178
done ( ) ;
179
179
} ) ;
@@ -206,7 +206,7 @@ describe('Unit: Utils > local-process', function () {
206
206
expect ( error . message ) . to . equal ( 'Test Error Message' ) ;
207
207
expect ( spawnStub . called ) . to . be . true ;
208
208
expect ( cp . stderr . on . calledOnce ) . to . be . true ;
209
- expect ( writeFileStub . calledWithExactly ( '/var/www/ghost/.ghostpid' , 42 ) ) . to . be . true ;
209
+ expect ( writeFileStub . calledWithExactly ( '/var/www/ghost/.ghostpid' , '42' ) ) . to . be . true ;
210
210
expect ( removeStub . calledWithExactly ( '/var/www/ghost/.ghostpid' ) ) . to . be . true ;
211
211
done ( ) ;
212
212
} ) ;
@@ -236,7 +236,7 @@ describe('Unit: Utils > local-process', function () {
236
236
237
237
startPromise . then ( ( ) => {
238
238
expect ( spawnStub . calledOnce ) . to . be . true ;
239
- expect ( writeFileStub . calledWithExactly ( '/var/www/ghost/.ghostpid' , 42 ) ) . to . be . true ;
239
+ expect ( writeFileStub . calledWithExactly ( '/var/www/ghost/.ghostpid' , '42' ) ) . to . be . true ;
240
240
expect ( cp . stderr . on . calledOnce ) . to . be . true ;
241
241
expect ( cp . stderr . destroy . calledOnce ) . to . be . true ;
242
242
expect ( cp . disconnect . calledOnce ) . to . be . true ;
0 commit comments