@@ -433,20 +433,20 @@ describe('GitHelper', () => {
433
433
describe ( 'checkDiff' , ( ) => {
434
434
it ( 'should return true' , async ( ) => {
435
435
setChildProcessParams ( { stdout : 'M file1\nA file2\nD file3\n file4\n\nB file5\n' } ) ;
436
- expect ( await helper . checkDiff ( workDir ) ) . toBeTruthy ( ) ;
436
+ expect ( await helper . checkDiff ( workDir ) ) . toBe ( true ) ;
437
437
} ) ;
438
438
439
439
it ( 'should return false' , async ( ) => {
440
440
setChildProcessParams ( { stdout : ' file1\n\nB file2\n' } ) ;
441
- expect ( await helper . checkDiff ( workDir ) ) . toBeFalsy ( ) ;
441
+ expect ( await helper . checkDiff ( workDir ) ) . toBe ( false ) ;
442
442
} ) ;
443
443
} ) ;
444
444
445
445
describe ( 'commit' , ( ) => {
446
446
it ( 'should do nothing' , async ( ) => {
447
447
const mockExec = spyOnExec ( ) ;
448
448
449
- expect ( await helper . commit ( workDir , 'test message' ) ) . toBeFalsy ( ) ;
449
+ expect ( await helper . commit ( workDir , 'test message' ) ) . toBe ( false ) ;
450
450
451
451
execCalledWith ( mockExec , [
452
452
'git add --all' ,
@@ -458,7 +458,7 @@ describe('GitHelper', () => {
458
458
setChildProcessParams ( { stdout : 'M file1\n\nM file2\n' } ) ;
459
459
const mockExec = spyOnExec ( ) ;
460
460
461
- expect ( await helper . commit ( workDir , 'hello! how are you doing $USER "double" \'single\'' ) ) . toBeTruthy ( ) ;
461
+ expect ( await helper . commit ( workDir , 'hello! how are you doing $USER "double" \'single\'' ) ) . toBe ( true ) ;
462
462
463
463
execCalledWith ( mockExec , [
464
464
'git add --all' ,
@@ -476,11 +476,10 @@ describe('GitHelper', () => {
476
476
count : 20 ,
477
477
allowEmpty : true ,
478
478
args : [ '--dry-run' ] ,
479
- } ) ) . toBeTruthy ( ) ;
479
+ } ) ) . toBe ( true ) ;
480
480
481
481
execCalledWith ( mockExec , [
482
482
'git add --all' ,
483
- 'git status --short -uno' ,
484
483
'git commit --allow-empty --dry-run -qm test' ,
485
484
'git show \'--stat-count=20\' HEAD' ,
486
485
] ) ;
0 commit comments