@@ -6,7 +6,7 @@ import { Utils } from '../src';
6
6
const { getWorkspace, getActor, escapeRegExp, getRegExp, getPrefixRegExp, getSuffixRegExp, useNpm, versionCompare, getOctokit} = Utils ;
7
7
const { isSemanticVersioningTagName, isPrRef, getPrMergeRef, getBoolValue, replaceAll, getPrHeadRef, arrayChunk, sleep} = Utils ;
8
8
const { getBranch, getRefForUpdate, uniqueArray, getBuildInfo, split, getArrayInput, generateNewPatchVersion, getPrBranch} = Utils ;
9
- const { isBranch, isTagRef, normalizeRef, trimRef, getTag, getRefspec, getRemoteRefspec, getLocalRefspec, mask} = Utils ;
9
+ const { isBranch, isTagRef, normalizeRef, trimRef, getTag, getRefspec, getRemoteRefspec, getLocalRefspec, mask} = Utils ;
10
10
11
11
jest . useFakeTimers ( ) ;
12
12
@@ -552,6 +552,15 @@ describe('getLocalRefspec', () => {
552
552
describe ( 'mask' , ( ) => {
553
553
it ( 'should remove token' , ( ) => {
554
554
expect ( mask ( { } ) ) . toEqual ( { } ) ;
555
+ expect ( mask ( {
556
+ token : 'test' ,
557
+ test1 : null ,
558
+ test2 : undefined ,
559
+ } ) ) . toEqual ( {
560
+ token : '***' ,
561
+ test1 : null ,
562
+ test2 : undefined ,
563
+ } ) ;
555
564
expect ( mask ( {
556
565
test1 : {
557
566
token : 'test' ,
@@ -563,7 +572,7 @@ describe('mask', () => {
563
572
} ,
564
573
} ) ) . toEqual ( {
565
574
test1 : {
566
- token : '***'
575
+ token : '***' ,
567
576
} ,
568
577
test2 : 2 ,
569
578
test3 : {
0 commit comments