mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 07:37:25 +01:00
fix test lint
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user