switched out assertion library with should.js... I really should have written my own baby util library since that was the third time I've done that...
This commit is contained in:
@ -1,7 +1,8 @@
|
||||
var selector = require('../../src/lib/selectors/round_robin');
|
||||
var _ = require('lodash');
|
||||
|
||||
describe('Round Robin Selector', function () {
|
||||
var selector = require('../../src/lib/selectors/round_robin');
|
||||
var _ = require('lodash');
|
||||
var expect = require('expect.js');
|
||||
|
||||
it('chooses options in order', function () {
|
||||
var options = [1, 2, 3, 4, 5, 6, 7, 8, 9, 0];
|
||||
var expected = _.clone(options);
|
||||
@ -11,6 +12,6 @@ describe('Round Robin Selector', function () {
|
||||
selections.push(selector(options));
|
||||
});
|
||||
|
||||
selections.should.eql(expected);
|
||||
expect(selections).to.eql(expected);
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user