mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
fix test lint
This commit is contained in:
@@ -22,7 +22,7 @@ describe('POST /user/allocate', () => {
|
||||
.to.eventually.be.rejected.and.eql({
|
||||
code: 400,
|
||||
error: 'BadRequest',
|
||||
message: apiError('invalidAttribute', {attr: 'invalid'}),
|
||||
message: apiError('invalidAttribute', { attr: 'invalid' }),
|
||||
});
|
||||
});
|
||||
|
||||
@@ -36,7 +36,7 @@ describe('POST /user/allocate', () => {
|
||||
});
|
||||
|
||||
it('returns an error if the user hasn\'t selected class', async () => {
|
||||
await user.update({'flags.classSelected': false});
|
||||
await user.update({ 'flags.classSelected': false });
|
||||
await expect(user.post('/user/allocate'))
|
||||
.to.eventually.be.rejected.and.eql({
|
||||
code: 401,
|
||||
@@ -46,8 +46,8 @@ describe('POST /user/allocate', () => {
|
||||
});
|
||||
|
||||
it('allocates attribute points', async () => {
|
||||
await user.update({'stats.points': 1});
|
||||
let res = await user.post('/user/allocate?stat=con');
|
||||
await user.update({ 'stats.points': 1 });
|
||||
const res = await user.post('/user/allocate?stat=con');
|
||||
await user.sync();
|
||||
expect(user.stats.con).to.equal(1);
|
||||
expect(user.stats.points).to.equal(0);
|
||||
|
||||
Reference in New Issue
Block a user