@@ -191,11 +191,13 @@ describe('Unit: Commands > Update', function () {
191
191
rollback : sinon . stub ( ) . resolves ( )
192
192
} ;
193
193
194
+ const releaseNotesStub = sinon . stub ( ) . resolves ( ) ;
194
195
const majorUpdateStub = sinon . stub ( ) ;
195
196
196
197
const UpdateCommand = proxyquire ( modulePath , {
197
198
'../tasks/migrator' : migratorStub ,
198
- '../tasks/major-update' : majorUpdateStub
199
+ '../tasks/major-update' : majorUpdateStub ,
200
+ '../tasks/release-notes' : releaseNotesStub
199
201
} ) ;
200
202
201
203
const ghostConfig = configStub ( ) ;
@@ -262,11 +264,13 @@ describe('Unit: Commands > Update', function () {
262
264
rollback : sinon . stub ( ) . resolves ( )
263
265
} ;
264
266
267
+ const releaseNotesStub = sinon . stub ( ) . resolves ( ) ;
265
268
const majorUpdateStub = sinon . stub ( ) ;
266
269
267
270
const UpdateCommand = proxyquire ( modulePath , {
268
271
'../tasks/migrator' : migratorStub ,
269
- '../tasks/major-update' : majorUpdateStub
272
+ '../tasks/major-update' : majorUpdateStub ,
273
+ '../tasks/release-notes' : releaseNotesStub
270
274
} ) ;
271
275
272
276
const ghostConfig = configStub ( ) ;
@@ -435,11 +439,13 @@ describe('Unit: Commands > Update', function () {
435
439
rollback : sinon . stub ( ) . resolves ( )
436
440
} ;
437
441
442
+ const releaseNotesStub = sinon . stub ( ) . resolves ( ) ;
438
443
const majorUpdateStub = sinon . stub ( ) ;
439
444
440
445
const UpdateCommand = proxyquire ( modulePath , {
441
446
'../tasks/migrator' : migratorStub ,
442
- '../tasks/major-update' : majorUpdateStub
447
+ '../tasks/major-update' : majorUpdateStub ,
448
+ '../tasks/release-notes' : releaseNotesStub
443
449
} ) ;
444
450
445
451
const ui = { log : sinon . stub ( ) , listr : sinon . stub ( ) , run : sinon . stub ( ) } ;
@@ -490,11 +496,13 @@ describe('Unit: Commands > Update', function () {
490
496
migrate : sinon . stub ( ) . resolves ( ) ,
491
497
rollback : sinon . stub ( ) . resolves ( )
492
498
} ;
499
+ const releaseNotesStub = sinon . stub ( ) . resolves ( ) ;
493
500
const majorUpdateStub = sinon . stub ( ) ;
494
501
495
502
const UpdateCommand = proxyquire ( modulePath , {
496
503
'../tasks/migrator' : migratorStub ,
497
- '../tasks/major-update' : majorUpdateStub
504
+ '../tasks/major-update' : majorUpdateStub ,
505
+ '../tasks/release-notes' : releaseNotesStub
498
506
} ) ;
499
507
500
508
const config = configStub ( ) ;
@@ -561,8 +569,10 @@ describe('Unit: Commands > Update', function () {
561
569
migrate : sinon . stub ( ) . resolves ( ) ,
562
570
rollback : sinon . stub ( ) . resolves ( )
563
571
} ;
572
+ const releaseNotesStub = sinon . stub ( ) . resolves ( ) ;
564
573
const UpdateCommand = proxyquire ( modulePath , {
565
- '../tasks/migrator' : migratorStub
574
+ '../tasks/migrator' : migratorStub ,
575
+ '../tasks/release-notes' : releaseNotesStub
566
576
} ) ;
567
577
const ui = { log : sinon . stub ( ) , listr : sinon . stub ( ) , run : sinon . stub ( ) } ;
568
578
const system = { getInstance : sinon . stub ( ) } ;
0 commit comments