Skip to content

Commit b1ad3c6

Browse files
committed
en tests
1 parent 5b445df commit b1ad3c6

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/emergencyNotification.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ describe("EmergencyNotification", function(){
134134

135135
try{
136136
span.isDone().should.be.true;
137-
JSON.stringify(res).should.equal(`{"emergencyNotificationRecipient":{"identifier":" 63865500-0904-46b1-9b4f-7bd237a26363 ","createdDate":"2020-03-18T21:26:47.403Z","lastModifiedDate":"2020-04-01T18:32:22.316Z","modifiedByUser":"jgilmore","description":" This is a description of the emergency notification recipient. ","type":"CALLBACK","callback":{"url":"https://foo.bar/baz","credentials":{"username":"jgilmore"}}},"client":{"accountId":"FakeAccountId","userName":"FakeUserName","password":"FakePassword","clientId":"","clientSecret":"","apiEndPoint":"https://dashboard.bandwidth.com/api","xml2jsParserOptions":{"explicitArray":false,"tagNameProcessors":[null,null],"async":true}}}`);
137+
JSON.stringify(res).should.startWith(`{"emergencyNotificationRecipient":{"identifier":" 63865500-0904-46b1-9b4f-7bd237a26363 ","createdDate":"2020-03-18T21:26:47.403Z","lastModifiedDate":"2020-04-01T18:32:22.316Z","modifiedByUser":"jgilmore","description":" This is a description of the emergency notification recipient. ","type":"CALLBACK","callback":{"url":"https://foo.bar/baz","credentials":{"username":"jgilmore"}}}`);
138138
} catch (err) {
139139
done(err);
140140
return;
@@ -177,7 +177,7 @@ describe("EmergencyNotification", function(){
177177

178178
try{
179179
span.isDone().should.be.true;
180-
JSON.stringify(res).should.equal(`{"emergencyNotificationRecipient":{"identifier":" 63865500-0904-46b1-9b4f-7bd237a26363 ","createdDate":"2020-03-18T21:26:47.403Z","lastModifiedDate":"2020-04-01T18:32:22.316Z","modifiedByUser":"jgilmore","description":" This is a description of the emergency notification recipient. ","type":"CALLBACK","callback":{"url":"https://foo.bar/baz","credentials":{"username":"jgilmore"}}},"client":{"accountId":"FakeAccountId","userName":"FakeUserName","password":"FakePassword","clientId":"","clientSecret":"","apiEndPoint":"https://dashboard.bandwidth.com/api","xml2jsParserOptions":{"explicitArray":false,"tagNameProcessors":[null,null],"async":true}}}`);
180+
JSON.stringify(res).should.startWith(`{"emergencyNotificationRecipient":{"identifier":" 63865500-0904-46b1-9b4f-7bd237a26363 ","createdDate":"2020-03-18T21:26:47.403Z","lastModifiedDate":"2020-04-01T18:32:22.316Z","modifiedByUser":"jgilmore","description":" This is a description of the emergency notification recipient. ","type":"CALLBACK","callback":{"url":"https://foo.bar/baz","credentials":{"username":"jgilmore"}}}`);
181181
} catch (err) {
182182
done(err);
183183
return;
@@ -226,7 +226,7 @@ describe("EmergencyNotification", function(){
226226

227227
try{
228228
span.isDone().should.be.true;
229-
JSON.stringify(res).should.equal(`{"emergencyNotificationRecipient":{"identifier":" 63865500-0904-46b1-9b4f-7bd237a26363 ","createdDate":"2020-03-18T21:26:47.403Z","lastModifiedDate":"2020-04-01T18:32:22.316Z","modifiedByUser":"jgilmore","description":" This is a description of the emergency notification recipient. ","type":"CALLBACK","callback":{"url":"https://foo.bar/baz","credentials":{"username":"jgilmore"}}},"client":{"accountId":"FakeAccountId","userName":"FakeUserName","password":"FakePassword","clientId":"","clientSecret":"","apiEndPoint":"https://dashboard.bandwidth.com/api","xml2jsParserOptions":{"explicitArray":false,"tagNameProcessors":[null,null],"async":true}}}`);
229+
JSON.stringify(res).should.startWith(`{"emergencyNotificationRecipient":{"identifier":" 63865500-0904-46b1-9b4f-7bd237a26363 ","createdDate":"2020-03-18T21:26:47.403Z","lastModifiedDate":"2020-04-01T18:32:22.316Z","modifiedByUser":"jgilmore","description":" This is a description of the emergency notification recipient. ","type":"CALLBACK","callback":{"url":"https://foo.bar/baz","credentials":{"username":"jgilmore"}}}`);
230230
} catch (err) {
231231
done(err);
232232
return;
@@ -364,7 +364,7 @@ describe("EmergencyNotification", function(){
364364

365365
try{
366366
span.isDone().should.be.true;
367-
JSON.stringify(res).should.equal(`{"links":{"first":"link"},"emergencyNotificationGroupOrders":{"emergencyNotificationGroupOrder":[{"orderId":"092815dc-9ced-4d67-a070-a80eb243b914","orderCreatedDate":"2020-04-29T15:40:01.449Z","createdBy":"systemUser","processingStatus":"COMPLETED","customerOrderId":"QTWeKMys","addedEmergencyNotificationGroup":{"identifier":"6daa55e1-e499-4cf0-9f3d-9524215f1bee","description":"enr test description 3","addedEmergencyNotificationRecipients":{"emergencyNotificationRecipient":{"identifier":"44f203915ca249b7b69bbc084af09a","description":"TestDesc SEHsbDMM","type":"SMS","sms":{"telephoneNumber":"15638765448"}}}}},{"orderId":"89b4e0a1-2789-43fb-b948-38d368159142","orderCreatedDate":"2020-04-29T15:39:59.325Z","createdBy":"systemUser","processingStatus":"COMPLETED","customerOrderId":"SDWupQpf","addedEmergencyNotificationGroup":{"identifier":"b49fa543-5bb3-4b9d-9213-96c8b63e77f5","description":"enr test description 2","addedEmergencyNotificationRecipients":{"emergencyNotificationRecipient":[{"identifier":"c719e060a6ba4212a2c0642b87a784","description":"TestDesc zscxcAGG","type":"SMS","sms":{"telephoneNumber":"15678765448"}},{"identifier":"93ad72dfe59c4992be6f8aa625466d","description":"TestDesc RTflsKBz","type":"TTS","tts":{"telephoneNumber":"17678765449"}}]}}},{"orderId":"247d1425-4247-4b27-99d8-83ce30038b14","orderCreatedDate":"2020-04-29T15:39:57.058Z","createdBy":"systemUser","processingStatus":"COMPLETED","customerOrderId":"vgshuNMB","addedEmergencyNotificationGroup":{"identifier":"69a3d588-f314-42ca-8726-faa824bdf4be","description":"eng test description","addedEmergencyNotificationRecipients":{"emergencyNotificationRecipient":[{"identifier":"aab78f87074940f1aaaf1c9658be4b","description":"enr test description","type":"EMAIL","emailAddress":"[email protected]"},{"identifier":"852e9eee161b4da6823c91173b05c4","description":"TestDesc WkHqpnNH","type":"TTS","tts":{"telephoneNumber":"15678765449"}}]}}}]},"client":{"accountId":"FakeAccountId","userName":"FakeUserName","password":"FakePassword","clientId":"","clientSecret":"","apiEndPoint":"https://dashboard.bandwidth.com/api","xml2jsParserOptions":{"explicitArray":false,"tagNameProcessors":[null,null],"async":true}}}`);
367+
JSON.stringify(res).should.startWith(`{"links":{"first":"link"},"emergencyNotificationGroupOrders":{"emergencyNotificationGroupOrder":[{"orderId":"092815dc-9ced-4d67-a070-a80eb243b914","orderCreatedDate":"2020-04-29T15:40:01.449Z","createdBy":"systemUser","processingStatus":"COMPLETED","customerOrderId":"QTWeKMys","addedEmergencyNotificationGroup":{"identifier":"6daa55e1-e499-4cf0-9f3d-9524215f1bee","description":"enr test description 3","addedEmergencyNotificationRecipients":{"emergencyNotificationRecipient":{"identifier":"44f203915ca249b7b69bbc084af09a","description":"TestDesc SEHsbDMM","type":"SMS","sms":{"telephoneNumber":"15638765448"}}}}},{"orderId":"89b4e0a1-2789-43fb-b948-38d368159142","orderCreatedDate":"2020-04-29T15:39:59.325Z","createdBy":"systemUser","processingStatus":"COMPLETED","customerOrderId":"SDWupQpf","addedEmergencyNotificationGroup":{"identifier":"b49fa543-5bb3-4b9d-9213-96c8b63e77f5","description":"enr test description 2","addedEmergencyNotificationRecipients":{"emergencyNotificationRecipient":[{"identifier":"c719e060a6ba4212a2c0642b87a784","description":"TestDesc zscxcAGG","type":"SMS","sms":{"telephoneNumber":"15678765448"}},{"identifier":"93ad72dfe59c4992be6f8aa625466d","description":"TestDesc RTflsKBz","type":"TTS","tts":{"telephoneNumber":"17678765449"}}]}}},{"orderId":"247d1425-4247-4b27-99d8-83ce30038b14","orderCreatedDate":"2020-04-29T15:39:57.058Z","createdBy":"systemUser","processingStatus":"COMPLETED","customerOrderId":"vgshuNMB","addedEmergencyNotificationGroup":{"identifier":"69a3d588-f314-42ca-8726-faa824bdf4be","description":"eng test description","addedEmergencyNotificationRecipients":{"emergencyNotificationRecipient":[{"identifier":"aab78f87074940f1aaaf1c9658be4b","description":"enr test description","type":"EMAIL","emailAddress":"[email protected]"},{"identifier":"852e9eee161b4da6823c91173b05c4","description":"TestDesc WkHqpnNH","type":"TTS","tts":{"telephoneNumber":"15678765449"}}]}}}]}`);
368368
} catch (err) {
369369
done(err);
370370
return;

0 commit comments

Comments
 (0)