@@ -26,28 +26,28 @@ describe('service: templateHelper', function () {
26
26
it ( 'should return the snippet for inserting a partial from the root' , function ( ) {
27
27
var parentId = "" ;
28
28
var nodeName = "Footer.cshtml" ;
29
- var snippet = '@Html.Partial ("Footer")' ;
29
+ var snippet = '@await Html.PartialAsync ("Footer")' ;
30
30
expect ( templateHelper . getInsertPartialSnippet ( parentId , nodeName ) ) . toBe ( snippet ) ;
31
31
} ) ;
32
32
33
33
it ( 'should return the snippet for inserting a partial from a folder' , function ( ) {
34
34
var parentId = "Folder" ;
35
35
var nodeName = "Footer.cshtml" ;
36
- var snippet = '@Html.Partial ("Folder/Footer")' ;
36
+ var snippet = '@await Html.PartialAsync ("Folder/Footer")' ;
37
37
expect ( templateHelper . getInsertPartialSnippet ( parentId , nodeName ) ) . toBe ( snippet ) ;
38
38
} ) ;
39
39
40
40
it ( 'should return the snippet for inserting a partial from a nested folder' , function ( ) {
41
41
var parentId = "Folder/NestedFolder" ;
42
42
var nodeName = "Footer.cshtml" ;
43
- var snippet = '@Html.Partial ("Folder/NestedFolder/Footer")' ;
43
+ var snippet = '@await Html.PartialAsync ("Folder/NestedFolder/Footer")' ;
44
44
expect ( templateHelper . getInsertPartialSnippet ( parentId , nodeName ) ) . toBe ( snippet ) ;
45
45
} ) ;
46
46
47
47
it ( 'should return the snippet for inserting a partial from a folder with spaces in its name' , function ( ) {
48
48
var parentId = "Folder with spaces" ;
49
49
var nodeName = "Footer.cshtml" ;
50
- var snippet = '@Html.Partial ("Folder with spaces/Footer")' ;
50
+ var snippet = '@await Html.PartialAsync ("Folder with spaces/Footer")' ;
51
51
expect ( templateHelper . getInsertPartialSnippet ( parentId , nodeName ) ) . toBe ( snippet ) ;
52
52
} ) ;
53
53
0 commit comments