Skip to content

Commit

Permalink
target new telnyx-mock version
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasassisrosa committed Jan 30, 2020
1 parent 33c784b commit 0abe220
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cache:
env:
global:
# If changing this number, please also look it at tests config.
- TELNYX_MOCK_VERSION=0.7.3
- TELNYX_MOCK_VERSION=0.8.0

before_install:
# Unpack and start telnyx-mock so that the test suite can talk to it
Expand Down
2 changes: 1 addition & 1 deletion test/resources/Fqdns.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var expect = require('chai').expect;

var TEST_AUTH_KEY = 'KEY187557EC22404DB39975C43ACE661A58_9QdDI7XD5bvyahtaWx1YQo';

describe.only('Fqdns Resource', function() {
describe('Fqdns Resource', function() {
describe('retrieve', function() {
function responseFn(response) {
expect(response.data).to.include({id: '123'});
Expand Down
5 changes: 4 additions & 1 deletion test/resources/Ips.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ var expect = require('chai').expect;

var TEST_AUTH_KEY = 'KEY187557EC22404DB39975C43ACE661A58_9QdDI7XD5bvyahtaWx1YQo';

describe.only('Ips Resource', function() {
describe('Ips Resource', function() {
describe('retrieve', function() {
function responseFn(response) {
expect(response.data).to.include({id: '123'});
Expand All @@ -25,6 +25,7 @@ describe.only('Ips Resource', function() {
function responseFn(response) {
expect(response.data).to.have.property('id');
expect(response.data).to.have.property('connection_id');
expect(response.data).to.have.property('ip_address');
expect(response.data).to.have.property('record_type');
expect(response.data).to.include({connection_id: 'Central BSD-1', record_type: 'ip'});
}
Expand All @@ -48,6 +49,7 @@ describe.only('Ips Resource', function() {
describe('list', function() {
function responseFn(response) {
expect(response.data[0]).to.have.property('id');
expect(response.data[0]).to.have.property('ip_address');
expect(response.data[0]).to.have.property('connection_id');
expect(response.data[0]).to.include({record_type: 'ip'});
}
Expand All @@ -67,6 +69,7 @@ describe.only('Ips Resource', function() {
function responseFn(response) {
if (response.data) {
expect(response.data).to.have.property('id');
expect(response.data).to.have.property('ip_address');
expect(response.data).to.have.property('connection_id');
expect(response.data).to.include({record_type: 'ip'});
}
Expand Down

0 comments on commit 0abe220

Please sign in to comment.