Change convention for naming tests

This commit is contained in:
Blade Barringer
2015-10-22 12:53:48 -05:00
parent c4402b2634
commit 9a79870b93
10 changed files with 0 additions and 0 deletions

View File

@@ -0,0 +1,45 @@
import {
generateUser,
requester,
} from '../../helpers/api.helper';
describe('DELETE /user', () => {
let api;
beforeEach((done) => {
generateUser().then((usr) => {
api = requester(usr);
done();
}).catch(done);
});
it('deletes the user', (done) => {
api.del('/user')
.then((fetchedUser) => {
return api.get('/user')
})
.then((deletedUser) => {
done('Unexpected user');
})
.catch((err) => {
expect(err.code).to.eql(401);
done();
});
});
context('user in solo group', () => {
it('deletes party when user is the only member');
it('deletes private guild when user is the only member');
});
context('user in group with members', () => {
it('removes user from all groups user was a part of');
it('chooses new group leader for any group user was the leader of');
it('removes invitations from groups');
});
});