From 9650d314c6c1b2bcd57d8483f69df4ef0e408cb0 Mon Sep 17 00:00:00 2001 From: Mads Rasmussen Date: Fri, 24 Mar 2017 11:35:44 +0100 Subject: [PATCH] fix failing unit tests for template editor --- .../app/templates/template-editor-controller.spec.js | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/Umbraco.Web.UI.Client/test/unit/app/templates/template-editor-controller.spec.js b/src/Umbraco.Web.UI.Client/test/unit/app/templates/template-editor-controller.spec.js index 6af9d12d73..642dc5ab20 100644 --- a/src/Umbraco.Web.UI.Client/test/unit/app/templates/template-editor-controller.spec.js +++ b/src/Umbraco.Web.UI.Client/test/unit/app/templates/template-editor-controller.spec.js @@ -49,7 +49,11 @@ setValue: function() {}, focus: function() {}, clearSelection: function() {}, - navigateFileStart: function() {} + navigateFileStart: function() {}, + commands: { + bindKey: function() {}, + addCommands: function() {} + } }; controller = createController(); @@ -107,7 +111,10 @@ getInsertPartialSnippet: function() { return ""; }, getQuerySnippet: function() { return ""; }, getRenderBodySnippet: function() { return ""; }, - getRenderSectionSnippet: function() { return ""; } + getRenderSectionSnippet: function() { return ""; }, + getGeneralShortcuts: function() { return ""; }, + getEditorShortcuts: function() { return ""; }, + getTemplateEditorShortcuts: function() { return ""; } } }); }