mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-07-26 16:53:52 +00:00
17 lines
318 B
JavaScript
17 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);
|
|
});
|
|
});
|