Commit e6497f00 by Clinton Blackburn

Corrected nesting for spec

parent 39033343
...@@ -42,32 +42,32 @@ define([ ...@@ -42,32 +42,32 @@ define([
}); });
}); });
}); });
});
describe('filterSeats', function () { describe('filterSeats', function () {
it('should filter CourseSeats of the requested type', function () { it('should filter CourseSeats of the requested type', function () {
var honor = new HonorSeat(), var honor = new HonorSeat(),
verified = new VerifiedSeat(), verified = new VerifiedSeat(),
professional = new ProfessionalSeat(), professional = new ProfessionalSeat(),
expected = [ expected = [
{ {
input: [honor, verified, professional], input: [honor, verified, professional],
output: { output: {
filtered: [verified], filtered: [verified],
residual: [honor, professional] residual: [honor, professional]
} }
}, },
{ {
input: [honor, verified, verified, professional], input: [honor, verified, verified, professional],
output: { output: {
filtered: [verified, verified], filtered: [verified, verified],
residual: [honor, professional] residual: [honor, professional]
}
} }
}, ];
];
_.each(expected, function (expected) { _.each(expected, function (expected) {
expect(CourseUtils.filterSeats(expected.input, 'verified')).toEqual(expected.output); 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