protect methods that can not use lodash-migrate

This commit is contained in:
spalger
2016-05-19 08:44:15 -07:00
parent fbac07a6ed
commit 38cf442acc
7 changed files with 13 additions and 7 deletions

View File

@ -1,6 +1,7 @@
describe('Round Robin Selector', function () {
var selector = require('../../../src/lib/selectors/round_robin');
var _ = require('lodash-migrate');
var _v4 = require('lodash-migrate/lodash');
var expect = require('expect.js');
it('chooses options in order', function () {
@ -8,7 +9,7 @@ describe('Round Robin Selector', function () {
var expected = _.clone(options);
var selections = [];
_.times(options.length, function () {
_v4.times(options.length, function () {
selections.push(selector(options));
});