From eb6fe1e4d33a506bb40ef60ea0f9d433740a79be Mon Sep 17 00:00:00 2001 From: Sebastiaan Janssen Date: Wed, 28 May 2014 13:06:23 +0200 Subject: [PATCH] Fix unit test that was failing after moving from yepnope to LazyLoad.js --- .../JsInitializationTests.cs | 26 +++++-------------- 1 file changed, 6 insertions(+), 20 deletions(-) diff --git a/src/Umbraco.Tests/AngularIntegration/JsInitializationTests.cs b/src/Umbraco.Tests/AngularIntegration/JsInitializationTests.cs index 6ce23fb216..6251134dbc 100644 --- a/src/Umbraco.Tests/AngularIntegration/JsInitializationTests.cs +++ b/src/Umbraco.Tests/AngularIntegration/JsInitializationTests.cs @@ -26,27 +26,13 @@ namespace Umbraco.Tests.AngularIntegration { var result = JsInitialization.ParseMain(new[] {"[World]", "Hello" }); - Assert.AreEqual(@" -yepnope({ - load: [ - 'lib/jquery/jquery-2.0.3.min.js', - 'lib/angular/1.1.5/angular.min.js', - 'lib/underscore/underscore.js', - ], - complete: function () { - yepnope({ - load: [World], - complete: function () { + Assert.AreEqual(@"LazyLoad.js([World], function () { + //we need to set the legacy UmbClientMgr path + UmbClientMgr.setUmbracoPath('Hello'); - //we need to set the legacy UmbClientMgr path - UmbClientMgr.setUmbracoPath('Hello'); - - jQuery(document).ready(function () { - angular.bootstrap(document, ['umbraco']); - }); - } - }); - } + jQuery(document).ready(function () { + angular.bootstrap(document, ['umbraco']); + }); });", result); } }