mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
lint: Use eslint --fix to automatically fix some issues in api v2 tests
This commit is contained in:
@@ -305,7 +305,7 @@ describe('GET /groups/:id', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('returns the user\'s party if an id of "party" is passed in', async () => {
|
it('returns the user\'s party if an id of "party" is passed in', async () => {
|
||||||
let group = await member.get('/groups/party')
|
let group = await member.get('/groups/party');
|
||||||
|
|
||||||
expect(group._id).to.eql(createdGroup._id);
|
expect(group._id).to.eql(createdGroup._id);
|
||||||
expect(group.name).to.eql(createdGroup.name);
|
expect(group.name).to.eql(createdGroup.name);
|
||||||
|
|||||||
@@ -113,7 +113,7 @@ describe('POST /groups', () => {
|
|||||||
let guild = await leader.post('/groups', {
|
let guild = await leader.post('/groups', {
|
||||||
type: 'guild',
|
type: 'guild',
|
||||||
privacy: 'public',
|
privacy: 'public',
|
||||||
})
|
});
|
||||||
|
|
||||||
expect(guild.leader).to.eql(leader._id);
|
expect(guild.leader).to.eql(leader._id);
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -18,11 +18,11 @@ describe('GET /user', () => {
|
|||||||
});
|
});
|
||||||
|
|
||||||
it('does not include password information', async () => {
|
it('does not include password information', async () => {
|
||||||
expect(user.auth.local.hashed_password).to.not.exist
|
expect(user.auth.local.hashed_password).to.not.exist;
|
||||||
expect(user.auth.local.salt).to.not.exist
|
expect(user.auth.local.salt).to.not.exist;
|
||||||
});
|
});
|
||||||
|
|
||||||
it('does not include api token', async () => {
|
it('does not include api token', async () => {
|
||||||
expect(user.apiToken).to.not.exist
|
expect(user.apiToken).to.not.exist;
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user