File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -68,7 +68,8 @@ describe('Scan commit diff', () => {
6868 privateOrganizations [ 0 ] = 'private-org-test' ;
6969 commitConfig . diff = {
7070 block : {
71- literals : [ 'blockedTestLiteral' ] ,
71+ //n.b. the example literal includes special chars that would be interpreted as RegEx if not escaped properly
72+ literals : [ 'blocked.Te$t.Literal?' ] ,
7273 patterns : [ ] ,
7374 providers : {
7475 'AWS (Amazon Web Services) Access Key ID' :
Original file line number Diff line number Diff line change @@ -528,14 +528,14 @@ describe('Database clients', () => {
528528
529529 it ( 'should be able to create a push' , async ( ) => {
530530 await db . writeAudit ( TEST_PUSH as any ) ;
531- const pushes = await db . getPushes ( ) ;
531+ const pushes = await db . getPushes ( { } ) ;
532532 const cleanPushes = cleanResponseData ( TEST_PUSH , pushes as any ) ;
533533 expect ( cleanPushes ) . toContainEqual ( TEST_PUSH ) ;
534534 } , 20000 ) ;
535535
536536 it ( 'should be able to delete a push' , async ( ) => {
537537 await db . deletePush ( TEST_PUSH . id ) ;
538- const pushes = await db . getPushes ( ) ;
538+ const pushes = await db . getPushes ( { } ) ;
539539 const cleanPushes = cleanResponseData ( TEST_PUSH , pushes as any ) ;
540540 expect ( cleanPushes ) . not . toContainEqual ( TEST_PUSH ) ;
541541 } ) ;
You can’t perform that action at this time.
0 commit comments