and finally, return to standard mo

This commit is contained in:
spalger
2016-05-19 14:33:04 -07:00
parent ec06c51c5d
commit 8ad271d81c
74 changed files with 594 additions and 597 deletions

View File

@ -1,18 +1,18 @@
describe('Random Selector', function () {
var randomSelector = require('../../../src/lib/selectors/random');
// var _ = require('lodash');
var _ = require('lodash');
var expect = require('expect.js');
it('chooses a selection by random', function () {
var log = { a: 0, b: 0, c: 0 };
var choices = _v4.keys(log);
var choices = _.keys(log);
_v4.times(1000, function () {
_.times(1000, function () {
var choice = randomSelector(choices);
log[choice]++;
});
expect(_v4.filter(log, function (count) {
expect(_.filter(log, function (count) {
return count < 200 || count > 400;
})).to.have.length(0);