Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: yacc/node-sms
base: 38aa50d63e
...
head fork: yacc/node-sms
compare: e6cdcb3d79
Checking mergeability… Don't worry, you can still create the pull request.
  • 2 commits
  • 2 files changed
  • 0 commit comments
  • 1 contributor
Showing with 9 additions and 3 deletions.
  1. +8 −2 lib/main.js
  2. +1 −1  test/main.js
View
10 lib/main.js
@@ -1,5 +1,11 @@
-function sendsms() {
- return [];
+function sendsms(cellphone,carrier) {
+ if (arguments.length < 2) {
+ return 'Please provide a phone number, a phone carrier';
+ }
+ // if (typeof arguments[0] != "string") {
+ // alert("Has to be string");
+ // }
+ return true;
}
View
2  test/main.js
@@ -5,7 +5,7 @@ describe('sendsms', function() {
describe('with no arguments', function() {
it('returns an error', function() {
var result = sendsms();
- result.should.eql('Please provide a phone number, a phone carrier and a country');
+ result.should.eql('Please provide a phone number, a phone carrier');
});
});
});

No commit comments for this range

Something went wrong with that request. Please try again.