mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-17 14:47:53 +01:00
18 lines
318 B
JavaScript
18 lines
318 B
JavaScript
import crit from '../../../website/common/script/fns/crit';
|
|
import {
|
|
generateUser,
|
|
} from '../../helpers/common.helper';
|
|
|
|
describe('crit', () => {
|
|
let user;
|
|
|
|
beforeEach(() => {
|
|
user = generateUser();
|
|
});
|
|
|
|
it('computes', () => {
|
|
const result = crit.crit(user);
|
|
expect(result).to.eql(1);
|
|
});
|
|
});
|