fix js unit test
This commit is contained in:
@@ -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', []);
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user