Skip to content

Commit

Permalink
Fixed linting.
Browse files Browse the repository at this point in the history
  • Loading branch information
j-rewerts committed Jun 17, 2019
1 parent b064242 commit 52e0f99
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions test/user.spec.js
Expand Up @@ -83,12 +83,12 @@ describe('User', function() {

before(function() {
return user.unfollow(userToFollow);
})
});

it('should follow user', function(done) {
user.follow(userToFollow, assertSuccessful(done, function(err, resp) {
user._request('GET', `/user/following`, null, assertSuccessful(done, function(err, following) {
expect((following.some(user => user['login'] === userToFollow))).to.be.true();
user._request('GET', '/user/following', null, assertSuccessful(done, function(err, following) {
expect((following.some((user) => user['login'] === userToFollow))).to.be.true();
done();
}));
}));
Expand All @@ -100,34 +100,34 @@ describe('User', function() {

before(function() {
return user.unfollow(userToFollow);
})
});

it('should not list yourself as one of your followers', function(done) {
user.follow(userToFollow, assertSuccessful(done, function(err, resp) {
user._request('GET', `/user/following`, null, assertSuccessful(done, function(err, following) {
expect((following.some(user => user['login'] === userToFollow))).to.be.false();
user._request('GET', '/user/following', null, assertSuccessful(done, function(err, following) {
expect((following.some((user) => user['login'] === userToFollow))).to.be.false();
done();
}));
}));
});
})
});

describe('unfollowing a user', function(done) {
const userToUnfollow = 'ingalls';

before(function() {
return user.follow(userToUnfollow);
})
});

it('should unfollow a user', function(done) {
user.unfollow(userToUnfollow, assertSuccessful(done, function(err, resp) {
user._request('GET', `/user/following`, null, assertSuccessful(done, function(err, following) {
expect((following.some(user => user['login'] === userToUnfollow))).to.be.false();
user._request('GET', '/user/following', null, assertSuccessful(done, function(err, following) {
expect((following.some((user) => user['login'] === userToUnfollow))).to.be.false();
done();
}));
}));
});
})
});

it('should list the email addresses of the user', function(done) {
user.getEmails(assertSuccessful(done));
Expand Down

0 comments on commit 52e0f99

Please sign in to comment.