shared-code-crit

This commit is contained in:
Victor Piousbox
2016-04-11 00:28:33 +00:00
parent 2f4f62f342
commit 2d69285080
3 changed files with 20 additions and 10 deletions
+17
View File
@@ -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);
});
});