Skip to content

Commit 1a527d4

Browse files
committed
Reduced test timeout. Fixed tests
1 parent 8206d6c commit 1a527d4

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/controllers/session.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ import { Mock } from 'moq.ts'
77
import { app } from '../../src/app/app'
88

99
describe('sessions controller', () => {
10-
jest.setTimeout(3600000)
10+
jest.setTimeout(60000)
1111

1212
// Test parameters
1313
const requestedPhoneNumbers = ['+1001', '+1002']

tests/services/inboundCall.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,15 +80,15 @@ describe('inbound call service', () => {
8080
expect.objectContaining({
8181
to: '+1112223333',
8282
from: '+2223334444',
83-
url: 'https://testdomain.com/join-conference?conferenceName=test_conference'
83+
twiml: '<?xml version="1.0" encoding="UTF-8"?><Response><Dial><Conference>test_conference</Conference></Dial></Response>'
8484
})
8585
)
8686

8787
expect(createSpy).toHaveBeenNthCalledWith(2,
8888
expect.objectContaining({
8989
to: '+3334445555',
9090
from: '+4445556666',
91-
url: 'https://testdomain.com/join-conference?conferenceName=test_conference'
91+
twiml: '<?xml version="1.0" encoding="UTF-8"?><Response><Dial><Conference>test_conference</Conference></Dial></Response>'
9292
})
9393
)
9494
})

0 commit comments

Comments
 (0)