@@ -10,7 +10,16 @@ describe('filters/string', function () {
10
10
describe ( 'append' , function ( ) {
11
11
it ( 'should return "-3abc" for -3, "abc"' ,
12
12
( ) => test ( '{{ -3 | append: "abc" }}' , '-3abc' ) )
13
- it ( 'should return "abar" for "a",foo' , ( ) => test ( '{{ "a" | append: foo }}' , 'abar' ) )
13
+ it ( 'should return "abar" for "a", foo' , ( ) => test ( '{{ "a" | append: foo }}' , 'abar' ) )
14
+ it ( 'should return "abc" for "abc", undefined' , ( ) => test ( '{{ "abc" | append: undefinedVar }}' , 'abc' ) )
15
+ it ( 'should return "abcfalse" for "abc", false' , ( ) => test ( '{{ "abc" | append: false }}' , 'abcfalse' ) )
16
+ } )
17
+ describe ( 'prepend' , function ( ) {
18
+ it ( 'should return "-3abc" for -3, "abc"' ,
19
+ ( ) => test ( '{{ -3 | prepend: "abc" }}' , 'abc-3' ) )
20
+ it ( 'should return "abar" for "a", foo' , ( ) => test ( '{{ "a" | prepend: foo }}' , 'bara' ) )
21
+ it ( 'should return "abc" for "abc", undefined' , ( ) => test ( '{{ "abc" | prepend: undefinedVar }}' , 'abc' ) )
22
+ it ( 'should return "falseabc" for "abc", false' , ( ) => test ( '{{ "abc" | prepend: false }}' , 'falseabc' ) )
14
23
} )
15
24
describe ( 'capitalize' , function ( ) {
16
25
it ( 'should capitalize first' , async ( ) => {
0 commit comments