Commit e6497f00 by Clinton Blackburn

Corrected nesting for spec

parent 39033343
......@@ -42,32 +42,32 @@ define([
});
});
});
});
describe('filterSeats', function () {
it('should filter CourseSeats of the requested type', function () {
var honor = new HonorSeat(),
verified = new VerifiedSeat(),
professional = new ProfessionalSeat(),
expected = [
{
input: [honor, verified, professional],
output: {
filtered: [verified],
residual: [honor, professional]
}
},
{
input: [honor, verified, verified, professional],
output: {
filtered: [verified, verified],
residual: [honor, professional]
describe('filterSeats', function () {
it('should filter CourseSeats of the requested type', function () {
var honor = new HonorSeat(),
verified = new VerifiedSeat(),
professional = new ProfessionalSeat(),
expected = [
{
input: [honor, verified, professional],
output: {
filtered: [verified],
residual: [honor, professional]
}
},
{
input: [honor, verified, verified, professional],
output: {
filtered: [verified, verified],
residual: [honor, professional]
}
}
},
];
];
_.each(expected, function (expected) {
expect(CourseUtils.filterSeats(expected.input, 'verified')).toEqual(expected.output);
_.each(expected, function (expected) {
expect(CourseUtils.filterSeats(expected.input, 'verified')).toEqual(expected.output);
});
});
});
});
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment