Skip to content

Commit

Permalink
Merge pull request #114 from AfricasTalkingLtd/feature/YODA-T-4
Browse files Browse the repository at this point in the history
YODA-T-4
  • Loading branch information
aksalj authored Oct 5, 2023
2 parents 47cd559 + 9c381fa commit abd3819
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Official AfricasTalking node.js API wrapper",
"main": "index.js",
"scripts": {
"test": "nyc mocha ./test",
"test": "nyc mocha ./test --exit --recursive",
"test-windows": "nyc node_modules/mocha/bin/_mocha ./test"
},
"repository": {
Expand Down
6 changes: 3 additions & 3 deletions test/fixtures.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
'use strict';

exports.TEST_ACCOUNT = {
apiKey: 'YOUR_API_KEY',
username: 'YOUR_USERNAME',
apiKey: '',
username: 'sandbox',
format: 'json',
};
exports.phoneNumber = '+2547xxxxxxxx';
exports.phoneNumber = '+2547XXXXXXXX';
5 changes: 3 additions & 2 deletions test/sms.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,8 @@ describe('SMS', function () {
const count = 1000;
const numbers = Array(count)
.fill(0)
.map((num, idx) => `+254000${count + idx}`);
.map((num, idx) => `+2547000${count + idx}00`.substring(0, 13));

const opts = {
to: numbers,
message: 'This is heavy single test',
Expand All @@ -219,7 +220,7 @@ describe('SMS', function () {
done();
})
.catch(function (err) {
done(error);
done(err);
});
});

Expand Down

0 comments on commit abd3819

Please sign in to comment.