fix js unit test

This commit is contained in:
Shannon
2019-09-20 11:03:45 +10:00
parent 97ac31a858
commit a0c0f61ef4
2 changed files with 61 additions and 49 deletions

View File

@@ -1,6 +1,18 @@
describe('RTE controller tests', function () {
var scope, controllerFactory;
//mock tinymce globals
if ((typeof tinymce) === "undefined") {
tinymce = {
DOM: {
events: {
domLoaded: false
}
},
baseUrl: ""
}
}
beforeEach(module('umbraco', function ($provide) {
$provide.value('tinyMceAssets', []);
}));