Skip to content

Commit 4d3f075

Browse files
committed
Changed test names and removed a test.
1 parent 2072dc8 commit 4d3f075

File tree

1 file changed

+2
-19
lines changed

1 file changed

+2
-19
lines changed

test/user.spec.js

Lines changed: 2 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ describe('User', function() {
8787
return user.unfollow(userToFollow);
8888
})
8989

90-
it('should attempt to follow yourself', function(done) {
90+
it('should not list yourself as one of your followers', function(done) {
9191
user.follow(userToFollow, assertSuccessful(done, function(err, resp) {
9292
user._request('GET', `/user/following`, null, assertSuccessful(done, function(err, following) {
9393
expect((following.some(user => user['login'] === userToFollow))).to.be.false();
@@ -104,24 +104,7 @@ describe('User', function() {
104104
return user.follow(userToUnfollow);
105105
})
106106

107-
it('should attempt to unfollow a user', function(done) {
108-
user.unfollow(userToUnfollow, assertSuccessful(done, function(err, resp) {
109-
user._request('GET', `/user/following`, null, assertSuccessful(done, function(err, following) {
110-
expect((following.some(user => user['login'] === userToUnfollow))).to.be.false();
111-
done();
112-
}));
113-
}));
114-
});
115-
})
116-
117-
describe('unfollowing yourself', function(done) {
118-
const userToUnfollow = testUser.USERNAME;
119-
120-
before(function() {
121-
return user.follow(userToUnfollow);
122-
})
123-
124-
it('should attempt to unfollow yourself', function(done) {
107+
it('should unfollow a user', function(done) {
125108
user.unfollow(userToUnfollow, assertSuccessful(done, function(err, resp) {
126109
user._request('GET', `/user/following`, null, assertSuccessful(done, function(err, following) {
127110
expect((following.some(user => user['login'] === userToUnfollow))).to.be.false();

0 commit comments

Comments
 (0)