fix test lint

This commit is contained in:
Matteo Pagliazzi
2019-10-08 20:45:38 +02:00
parent e37f4467f8
commit 85fb5f33aa
367 changed files with 6635 additions and 6080 deletions

View File

@@ -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;
});
});