mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
fix test lint
This commit is contained in:
@@ -12,8 +12,8 @@ describe('common.fns.updateStats', () => {
|
||||
});
|
||||
|
||||
context('No Hp', () => {
|
||||
it('updates user\s hp', () => {
|
||||
let stats = { hp: 0 };
|
||||
it('updates user\'s hp', () => {
|
||||
const stats = { hp: 0 };
|
||||
expect(user.stats.hp).to.not.eql(0);
|
||||
updateStats(user, stats);
|
||||
expect(user.stats.hp).to.eql(0);
|
||||
@@ -22,7 +22,7 @@ describe('common.fns.updateStats', () => {
|
||||
});
|
||||
|
||||
it('does not lower hp below 0', () => {
|
||||
let stats = {
|
||||
const stats = {
|
||||
hp: -5,
|
||||
};
|
||||
updateStats(user, stats);
|
||||
@@ -32,7 +32,7 @@ describe('common.fns.updateStats', () => {
|
||||
|
||||
context('Stat Allocation', () => {
|
||||
it('adds only attribute points up to user\'s level', () => {
|
||||
let stats = {
|
||||
const stats = {
|
||||
exp: 261,
|
||||
};
|
||||
expect(user.stats.points).to.eql(0);
|
||||
@@ -45,7 +45,7 @@ describe('common.fns.updateStats', () => {
|
||||
});
|
||||
|
||||
it('adds an attibute point when user\'s stat points are less than max level', () => {
|
||||
let stats = {
|
||||
const stats = {
|
||||
exp: 3581,
|
||||
};
|
||||
|
||||
@@ -61,7 +61,7 @@ describe('common.fns.updateStats', () => {
|
||||
});
|
||||
|
||||
it('does not add an attibute point when user\'s stat points are equal to max level', () => {
|
||||
let stats = {
|
||||
const stats = {
|
||||
exp: 3581,
|
||||
};
|
||||
|
||||
@@ -77,7 +77,7 @@ describe('common.fns.updateStats', () => {
|
||||
});
|
||||
|
||||
it('does not add an attibute point when user\'s stat points + unallocated points are equal to max level', () => {
|
||||
let stats = {
|
||||
const stats = {
|
||||
exp: 3581,
|
||||
};
|
||||
|
||||
@@ -94,7 +94,7 @@ describe('common.fns.updateStats', () => {
|
||||
});
|
||||
|
||||
it('only awards stat points up to level 100 if user is missing unallocated stat points and is over level 100', () => {
|
||||
let stats = {
|
||||
const stats = {
|
||||
exp: 5581,
|
||||
};
|
||||
|
||||
@@ -182,7 +182,7 @@ describe('common.fns.updateStats', () => {
|
||||
xit('auto allocates stats if automaticAllocation is turned on', () => {
|
||||
sandbox.stub(user.fns, 'autoAllocate');
|
||||
|
||||
let stats = {
|
||||
const stats = {
|
||||
exp: 261,
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user