added rte and assets service mocks

This commit is contained in:
perploug
2013-11-28 12:29:58 +01:00
parent 7f305db637
commit e076b687c6
4 changed files with 68 additions and 10 deletions

View File

@@ -0,0 +1,23 @@
describe('RTE controller tests', function () {
var scope, controllerFactory;
beforeEach(module('umbraco'));
beforeEach(inject(function ($rootScope, $controller) {
controllerFactory = $controller;
scope = $rootScope.$new();
scope.model = {value: "<p>hello</p>"};
}));
describe('initialization', function () {
it('should define the default properties on construction', function () {
controllerFactory('Umbraco.PropertyEditors.RTEController', {
$scope: scope,
$routeParams: routeParams
});
});
});
});