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

@@ -7,15 +7,15 @@ describe('GET /hall/heroes', () => {
it('returns all heroes sorted by -contributor.level and with correct fields', async () => {
await resetHabiticaDB();
let nonHero = await generateUser();
let hero1 = await generateUser({
contributor: {level: 1},
const nonHero = await generateUser();
const hero1 = await generateUser({
contributor: { level: 1 },
});
let hero2 = await generateUser({
contributor: {level: 3},
const hero2 = await generateUser({
contributor: { level: 3 },
});
let heroes = await nonHero.get('/hall/heroes');
const heroes = await nonHero.get('/hall/heroes');
expect(heroes.length).to.equal(2);
expect(heroes[0]._id).to.equal(hero2._id);
expect(heroes[1]._id).to.equal(hero1._id);