mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-29 22:20:42 +00:00
Creates user-put file with stub test
This commit is contained in:
parent
01914523e1
commit
6b52a32265
1 changed files with 31 additions and 0 deletions
31
test/api/user/user-put.js
Normal file
31
test/api/user/user-put.js
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
import {
|
||||
generateUser,
|
||||
requester,
|
||||
} from '../../helpers/api.helper';
|
||||
|
||||
describe('PUT /user', () => {
|
||||
let api, user;
|
||||
|
||||
beforeEach((done) => {
|
||||
generateUser().then((usr) => {
|
||||
user = usr;
|
||||
api = requester(usr);
|
||||
done();
|
||||
}).catch(done);
|
||||
});
|
||||
//
|
||||
// it('gets the user object', (done) => {
|
||||
// api.get('/user')
|
||||
// .then((fetchedUser) => {
|
||||
// expect(fetchedUser._id).to.eql(user._id);
|
||||
// expect(fetchedUser.todos).to.eql(user.todos);
|
||||
// done();
|
||||
// })
|
||||
// .catch((err) => {
|
||||
// done(err);
|
||||
// });
|
||||
// });
|
||||
it("it works", () => {
|
||||
expect(1).to.eql(1);
|
||||
});
|
||||
});
|
||||
Loading…
Reference in a new issue