Skip to content

Commit

Permalink
Merge branch 'master' into master
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatasfreitasv authored Jul 27, 2017
2 parents dee5d70 + f12cae8 commit 750792e
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 12 deletions.
3 changes: 3 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
language: node_js
node_js:
- "7"
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Zenvia SMS Core for NodeJS

Under construction!
[![Build Status](https://travis-ci.org/zenvia/zenvia-sms-core.svg?branch=master)](https://travis-ci.org/zenvia/zenvia-sms-core)

Full and official implementation of Zenvia SMS API, send, monitor status and receive SMS from clients with this module.

Expand Down Expand Up @@ -69,7 +69,7 @@ zapi.setCredentials('account', 'password');
run `npm install`.

### Make tests
for success send SMS tests case in api, fill `phone_number`, `zenvia_account`, `zenvia_password` on `test/api.test.js`.
for success send SMS tests case in api, fill `zenvia_phonenumber`, `zenvia_account`, `zenvia_password` on env variables.

run `npm test`.

Expand Down
20 changes: 10 additions & 10 deletions test/api.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ const zapi = require('../index').api;

describe('API', ()=>{

const phone_number = '5551999999999';
const zenvia_account = 'acc.count';
const zenvia_password = 'aNythInK';
const phone_number = process.env.zenvia_phonenumber;
const zenvia_account = process.env.zenvia_account;
const zenvia_password = process.env.zenvia_password;

beforeEach(()=>{
zapi.setCredentials(zenvia_account, zenvia_password);
Expand Down Expand Up @@ -135,7 +135,7 @@ describe('API', ()=>{

})

}).timeout(5000);
}).timeout(10000);

// TODO: refactor this
it('should getSMSStatus function return catch 401', (done) => {
Expand All @@ -155,7 +155,7 @@ describe('API', ()=>{

});

}).timeout(5000);
}).timeout(10000);

it('should getSMSReceivedList function return catch 401', (done) => {

Expand All @@ -174,7 +174,7 @@ describe('API', ()=>{

});

}).timeout(5000);
}).timeout(10000);

it('should getSMSReceivedListSearch function return catch 401', (done) => {

Expand All @@ -193,7 +193,7 @@ describe('API', ()=>{

});

}).timeout(5000);
}).timeout(10000);

it('should cancelScheduledSMS function return catch 401', (done) => {

Expand All @@ -212,7 +212,7 @@ describe('API', ()=>{

});

}).timeout(5000);
}).timeout(10000);


it('should sendSMS function return success', (done) => {
Expand Down Expand Up @@ -251,7 +251,7 @@ describe('API', ()=>{

});

}).timeout(5000);
}).timeout(10000);

it('should cancelScheduledSMS function return success', (done) => {

Expand Down Expand Up @@ -297,7 +297,7 @@ describe('API', ()=>{

});

}).timeout(5000);
}).timeout(10000);

// TODO: make success tests for getSMSReceivedList and getSMSReceivedListSearch

Expand Down

0 comments on commit 750792e

Please sign in to comment.