Commit e08a994a by Clinton Blackburn

Merge pull request #284 from edx/clintonb/test-update

Added test of Course model's product collection
parents 897f8914 db5599ff
......@@ -2,6 +2,7 @@ define([
'jquery',
'moment',
'underscore',
'collections/product_collection',
'models/course_model',
'models/course_seats/professional_seat',
'jquery-cookie'
......@@ -9,6 +10,7 @@ define([
function ($,
moment,
_,
ProductCollection,
Course,
ProfessionalSeat) {
'use strict';
......@@ -209,5 +211,11 @@ define([
expect(seat).toEqual(jasmine.any(ProfessionalSeat));
});
});
describe('products', function () {
it('is a ProductCollection', function () {
expect(model.get('products')).toEqual(jasmine.any(ProductCollection));
});
});
}
);
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