Merge pull request #7064 from piousbox/shared-code-crit
shared-code-crit
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
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);
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user