Fix up unit test for RTE, it was failing as I added the Angular app.value for tinyMceAssets - this ensures we add an empty array of tinymce assets

This commit is contained in:
Warren Buckley
2019-08-20 11:28:02 +01:00
parent a95360036d
commit 4fc265275b

View File

@@ -1,7 +1,9 @@
describe('RTE controller tests', function () {
var scope, controllerFactory;
beforeEach(module('umbraco'));
beforeEach(module('umbraco', function ($provide) {
$provide.value('tinyMceAssets', []);
}));
beforeEach(inject(function ($rootScope, $controller) {
controllerFactory = $controller;
@@ -20,4 +22,5 @@ describe('RTE controller tests', function () {
});
});
});
});