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

@@ -11,14 +11,10 @@ describe('GET /user/in-app-rewards', () => {
});
it('returns the reward items available for purchase', async () => {
let buyList = await user.get('/user/in-app-rewards');
const buyList = await user.get('/user/in-app-rewards');
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;
});
});