mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 22:57:21 +01:00
fix test lint
This commit is contained in:
@@ -13,14 +13,10 @@ describe('GET /user/inventory/buy', () => {
|
||||
// More tests in common code unit tests
|
||||
|
||||
it('returns the gear items available for purchase', async () => {
|
||||
let buyList = await user.get('/user/inventory/buy');
|
||||
const buyList = await user.get('/user/inventory/buy');
|
||||
|
||||
expect(_.find(buyList, item => {
|
||||
return item.text === t('armorWarrior1Text');
|
||||
})).to.exist;
|
||||
expect(_.find(buyList, item => item.text === t('armorWarrior1Text'))).to.exist;
|
||||
|
||||
expect(_.find(buyList, item => {
|
||||
return item.text === t('armorWarrior2Text');
|
||||
})).to.not.exist;
|
||||
expect(_.find(buyList, item => item.text === t('armorWarrior2Text'))).to.not.exist;
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user