Skip to content

Commit

Permalink
wip: fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sirpy committed Sep 24, 2020
1 parent 9b2bcee commit c5bd41f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/server/claimQueue/__tests__/claimQueueAPI.js
Expand Up @@ -10,7 +10,7 @@ import { getToken, getCreds } from '../../__util__'
import UserDBPrivate from '../../db/mongo/user-privat-provider'
import { ClaimQueueProps } from '../../db/mongo/models/props'

jest.setTimeout(10000)
jest.setTimeout(15000)
describe('claimQueueAPI', () => {
let server, creds, token
const { claimQueueAllowed } = conf
Expand Down
2 changes: 1 addition & 1 deletion src/server/gun/__tests__/GunDB.js
Expand Up @@ -66,7 +66,7 @@ describe('GunDB', () => {
profilePublickey: 'ABCDE'
})
const indexid = storage.getIndexId('mobile')
const index = await storage.getIndex('mobile')
const index = await storage.gun.get(indexid).then()

expect(index['_']['#']).toEqual(indexid)
expect(index).toBeTruthy()
Expand Down
1 change: 1 addition & 0 deletions src/server/mautic/__tests__/mauticAPI.js
Expand Up @@ -6,6 +6,7 @@ import { Mautic } from '../mauticAPI'
import conf from '../../server.config'
import { utmString } from '../../__util__'

jest.setTimeout(15000)
describe('Send', () => {
var mauticId = ''
it('should add new contact', async () => {
Expand Down
2 changes: 1 addition & 1 deletion src/server/server.config.js
Expand Up @@ -226,7 +226,7 @@ const conf = convict({
doc: 'mautic token',
format: '*',
env: 'MAUTIC_TOKEN',
default: 'MAUTIC_TOKEN'
default: null
},
mauticBasicToken: {
doc: 'mautic basic auth token',
Expand Down

0 comments on commit c5bd41f

Please sign in to comment.