fixes js unit tests

This commit is contained in:
Shannon
2014-03-18 12:23:10 +11:00
parent 09ea82b37f
commit e40cf3b8fc

View File

@@ -20,6 +20,11 @@ describe('Content picker controller tests', function () {
config: {}
};
//this controller requires an angular form controller applied to it
scope.contentPickerForm = angularHelper.getNullForm("contentPickerForm");
scope.contentPickerForm.minCount = angularHelper.getNullForm("minCount");
scope.contentPickerForm.maxCount = angularHelper.getNullForm("maxCount");
//have the contentMocks register its expect urls on the httpbackend
//see /mocks/content.mocks.js for how its setup
entityMocks.register();