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([ ...@@ -2,6 +2,7 @@ define([
'jquery', 'jquery',
'moment', 'moment',
'underscore', 'underscore',
'collections/product_collection',
'models/course_model', 'models/course_model',
'models/course_seats/professional_seat', 'models/course_seats/professional_seat',
'jquery-cookie' 'jquery-cookie'
...@@ -9,6 +10,7 @@ define([ ...@@ -9,6 +10,7 @@ define([
function ($, function ($,
moment, moment,
_, _,
ProductCollection,
Course, Course,
ProfessionalSeat) { ProfessionalSeat) {
'use strict'; 'use strict';
...@@ -209,5 +211,11 @@ define([ ...@@ -209,5 +211,11 @@ define([
expect(seat).toEqual(jasmine.any(ProfessionalSeat)); 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