Merge pull request #7064 from piousbox/shared-code-crit

shared-code-crit
This commit is contained in:
Matteo Pagliazzi
2016-04-12 09:58:46 +02:00
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);
});
});