mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
tests(api): Convert tests to use new api user methods
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
import {
|
||||
generateUser,
|
||||
requester,
|
||||
} from '../../../helpers/api-integration.helper';
|
||||
|
||||
describe('GET /user', () => {
|
||||
@@ -8,8 +7,7 @@ describe('GET /user', () => {
|
||||
|
||||
before(() => {
|
||||
return generateUser().then((usr) => {
|
||||
let api = requester(usr);
|
||||
return api.get('/user');
|
||||
return usr.get('/user');
|
||||
}).then((fetchedUser) => {
|
||||
user = fetchedUser;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user