Skip to content
This repository has been archived by the owner on Feb 19, 2020. It is now read-only.

Commit

Permalink
Merge branch 'master' of github.com:Automattic/wpcom.js
Browse files Browse the repository at this point in the history
  • Loading branch information
retrofox committed Oct 26, 2015
2 parents ded1958 + db9e7bc commit b07c70c
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 34 deletions.
10 changes: 0 additions & 10 deletions docs/me.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,3 @@ me.groups(function(err, list){
// groups list object
});
```

### Me#connections([query, ]fn)

Get a list of the current user's connections to third-party services

```js
me.connections(function(err, list){
// connections list object
});
```
11 changes: 0 additions & 11 deletions lib/me.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,17 +61,6 @@ Me.prototype.groups = function (query, fn) {
return this.wpcom.req.get('/me/groups', query, fn);
};

/**
* A list of the current user's connections to third-party services
*
* @param {Object} [query]
* @param {Function} fn
* @api public
*/

Me.prototype.connections = function (query, fn) {
return this.wpcom.req.get('/me/connections', query, fn);
};

/**
* Expose `Me` module
Expand Down
13 changes: 0 additions & 13 deletions test/test.wpcom.me.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,17 +88,4 @@ describe('wpcom.me', function(){
});
});

describe('wpcom.me.connections', function(){
it('should require third-party connections', done => {
me.connections()
.then(data => {
assert.equal('object', typeof data.connections);
assert.ok(data.connections instanceof Array);

done();
})
.catch(done);
});
});

});

0 comments on commit b07c70c

Please sign in to comment.