mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-27 09:09:42 +00:00
18 lines
303 B
JavaScript
18 lines
303 B
JavaScript
|
|
import crit from '../../../common/script/fns/crit';
|
||
|
|
import {
|
||
|
|
generateUser,
|
||
|
|
} from '../../helpers/common.helper';
|
||
|
|
|
||
|
|
describe('crit', () => {
|
||
|
|
let user;
|
||
|
|
|
||
|
|
beforeEach(() => {
|
||
|
|
user = generateUser();
|
||
|
|
});
|
||
|
|
|
||
|
|
it('computes', () => {
|
||
|
|
let result = crit(user);
|
||
|
|
expect(result).to.eql(1);
|
||
|
|
});
|
||
|
|
});
|