fixes last unit test

This commit is contained in:
Shannon
2014-02-21 18:09:46 +11:00
parent e1022bd5a1
commit a1b3345671

View File

@@ -24,9 +24,12 @@ namespace Umbraco.Tests.AngularIntegration
[Test]
public void Parse_Main()
{
var result = JsInitialization.ParseMain(new[] { "[World]", "Hello" });
var noCache = Resources.JsNoCache;
noCache = noCache.Replace("##rnd##", "(new Date).getTime()");
var result = JsInitialization.ParseMain(new[] { noCache, "[World]", "Hello" });
Assert.AreEqual(@"yepnope({
Assert.AreEqual(noCache + @"
yepnope({
load: [
'lib/jquery/jquery-2.0.3.min.js',
'lib/angular/1.1.5/angular.min.js',