Skip to content

Commit bfa4374

Browse files
committed
fix: failing tests and formatting
1 parent 51478b0 commit bfa4374

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

test/processors/scanDiff.test.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff 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':

test/testDb.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
});

0 commit comments

Comments
 (0)