Skip to content

Commit 1e48a84

Browse files
author
Tim Mendoza
committed
Update helpers.test.js
1 parent bd29e6c commit 1e48a84

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/helpers/helpers.test.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ function getMockTwilioInstance(options) {
5050
Promise.resolve([
5151
{ key: 'API_PASSCODE', value: '123456' },
5252
{ key: 'API_PASSCODE_EXPIRY', value: '1590000000000' },
53+
{ key: 'ROOM_TYPE', value: 'group' },
5354
]),
5455
},
5556
}));
@@ -181,6 +182,7 @@ describe('the getAppInfo function', () => {
181182
passcode: '12345612345678',
182183
sid: 'appSid',
183184
url: `https://${APP_NAME}-1234-5678-dev.twil.io?passcode=12345612345678`,
185+
roomType: 'group',
184186
});
185187
});
186188

@@ -194,6 +196,7 @@ describe('the getAppInfo function', () => {
194196
passcode: '12345612345678',
195197
sid: 'appSid',
196198
url: `https://${APP_NAME}-1234-5678-dev.twil.io?passcode=12345612345678`,
199+
roomType: 'group',
197200
});
198201
});
199202

@@ -216,6 +219,7 @@ describe('the displayAppInfo function', () => {
216219
expect(stdout.output).toMatchInlineSnapshot(`
217220
"Passcode: 123 456 1234 5678
218221
Expires: Wed May 20 2020 18:40:00 GMT+0000
222+
Room Type: group
219223
"
220224
`);
221225
});
@@ -228,6 +232,7 @@ describe('the displayAppInfo function', () => {
228232
"Web App URL: https://${APP_NAME}-1234-5678-dev.twil.io?passcode=12345612345678
229233
Passcode: 123 456 1234 5678
230234
Expires: Wed May 20 2020 18:40:00 GMT+0000
235+
Room Type: group
231236
"
232237
`);
233238
});

0 commit comments

Comments
 (0)