mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
chore(lint): lint files in preparation for eslint v2
This commit is contained in:
@@ -18,7 +18,7 @@ describe('POST /user/buy/:key', () => {
|
||||
// More tests in common code unit tests
|
||||
|
||||
it('returns an error if the item is not found', async () => {
|
||||
await expect(user.post(`/user/buy/notExisting`))
|
||||
await expect(user.post('/user/buy/notExisting'))
|
||||
.to.eventually.be.rejected.and.eql({
|
||||
code: 404,
|
||||
error: 'NotFound',
|
||||
@@ -28,7 +28,7 @@ describe('POST /user/buy/:key', () => {
|
||||
|
||||
it('buys an item', async () => {
|
||||
let potion = content.potion;
|
||||
let res = await user.post(`/user/buy/potion`);
|
||||
let res = await user.post('/user/buy/potion');
|
||||
await user.sync();
|
||||
|
||||
expect(res.data).to.eql({
|
||||
|
||||
Reference in New Issue
Block a user