Skip to content

Commit 28c80d8

Browse files
authored
Fix Super-Admin Testing Coverage (canada-ca#2204)
* remove default value, and just pass it when being called * don't call log when passing
1 parent 240523c commit 28c80d8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

services/super-admin/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,5 @@ const { superAdminService } = require('./src')
2121
options: databaseOptions({ rootPass }),
2222
})
2323

24-
await superAdminService({ query, collections, transaction, bcrypt })
24+
await superAdminService({ query, collections, transaction, bcrypt, log: console.log })
2525
})()

services/super-admin/src/super-admin-service.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const superAdminService = async ({
1313
collections,
1414
transaction,
1515
bcrypt,
16-
log = console.log,
16+
log,
1717
}) => {
1818
log('Checking for super admin account.')
1919

0 commit comments

Comments
 (0)