@@ -7,7 +7,7 @@ var helpers = require('..');
7
7
helpers . array ( { handlebars : hbs } ) ;
8
8
helpers . string ( { handlebars : hbs } ) ;
9
9
10
- var context = { array : [ 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' ] , duplicate : [ 'a' , 'b' , 'b' , 'c' , 'd' , 'b' , 'f' , 'a' , 'g' ] } ;
10
+ var context = { array : [ 'a' , 'b' , 'c' , 'd' , 'e' , 'f' , 'g' , 'h' ] , duplicate : [ 'a' , 'b' , 'b' , 'c' , 'd' , 'b' , 'f' , 'a' , 'g' ] } ;
11
11
12
12
describe ( 'array' , function ( ) {
13
13
describe ( 'after' , function ( ) {
@@ -480,15 +480,15 @@ describe('array', function() {
480
480
} ) ;
481
481
} ) ;
482
482
483
- describe ( 'unique' , function ( ) {
484
- it ( 'should return empty string when the array is null' , function ( ) {
485
- var fn = hbs . compile ( '{{#unique}}{{this}}{{/unique}}' )
486
- assert . equal ( fn ( context ) , '' ) ;
487
- } )
488
- it ( 'should return array with unique items' , function ( ) {
483
+ describe ( 'unique' , function ( ) {
484
+ it ( 'should return empty string when the array is null' , function ( ) {
485
+ var fn = hbs . compile ( '{{#unique}}{{this}}{{/unique}}' ) ;
486
+ assert . equal ( fn ( context ) , '' ) ;
487
+ } ) ;
488
+ it ( 'should return array with unique items' , function ( ) {
489
489
var fn = hbs . compile ( '{{#unique duplicate}}{{this}}{{/unique}}' ) ;
490
- assert . equal ( fn ( context ) . toString ( ) , 'a,b,c,d,f,g' ) ;
491
- } )
490
+ assert . equal ( fn ( context ) . toString ( ) , 'a,b,c,d,f,g' ) ;
491
+ } ) ;
492
492
} ) ;
493
493
494
494
} ) ;
0 commit comments