Skip to content

Commit

Permalink
Merge branch 'v1.2-next' into DEVEXP-528_E2E-Voice/Callbacks
Browse files Browse the repository at this point in the history
  • Loading branch information
asein-sinch authored Sep 24, 2024
2 parents 2fbd55e + baa0749 commit c0ea474
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions packages/voice/tests/rest/v1/applications/applications.steps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Given('the Voice service "Applications" is available', () => {
applicationsApi = voiceService.applications;
});

When('I send a request get information about my owned numbers', async () => {
When('I send a request to get information about my owned numbers', async () => {
listNumbersResponse = await applicationsApi.listNumbers({});
});

Expand All @@ -36,7 +36,7 @@ Then('the response contains details about the numbers that I own', () => {
assert.equal(number2.capability, 'voice');
});

When('I send a request assign some numbers to a Voice Application', async () => {
When('I send a request to assign some numbers to a Voice Application', async () => {
assignNumbersResponse = await applicationsApi.assignNumbers({
assignNumbersRequestBody: {
numbers: [
Expand All @@ -52,7 +52,7 @@ Then('the assign numbers response contains no data', () => {
assert.deepEqual(assignNumbersResponse, {});
});

When('I send a request unassign a number from a Voice Application', async () => {
When('I send a request to unassign a number from a Voice Application', async () => {
unassignNumberResponse = await applicationsApi.unassignNumber({
unassignNumbersRequestBody: {
number: '+12012222222',
Expand All @@ -64,7 +64,7 @@ Then('the unassign number response contains no data', () => {
assert.deepEqual(unassignNumberResponse, {});
});

When('I send a request get information about a specific number', async () => {
When('I send a request to get information about a specific number', async () => {
queryNumberResponse = await applicationsApi.queryNumber({
number: '+12015555555',
});
Expand All @@ -84,7 +84,7 @@ Then('the response contains details about the specific number', () => {
assert.deepEqual(number.rate, rate);
});

When('I send a request get the callback URLs associated to an application', async () => {
When('I send a request to get the callback URLs associated to an application', async () => {
callbackURLs = await applicationsApi.getCallbackURLs({
applicationkey: 'f00dcafe-abba-c0de-1dea-dabb1ed4caf3',
});
Expand All @@ -96,7 +96,7 @@ Then('the response contains callback URLs details', () => {
assert.equal(callbackURLs.url.fallback, 'https://my.fallback-server.com/voice');
});

When('I send a request update the callback URLs associated to an application', async () => {
When('I send a request to update the callback URLs associated to an application', async () => {
updateCallbackURLsResponse = await applicationsApi.updateCallbackURLs({
applicationkey: 'f00dcafe-abba-c0de-1dea-dabb1ed4caf3',
updateCallbacksRequestBody: {
Expand Down

0 comments on commit c0ea474

Please sign in to comment.