@@ -11,15 +11,15 @@ describe('Filter: orderBy', function() {
11
11
it ( 'should return sorted array if predicate is not provided' , function ( ) {
12
12
expect ( orderBy ( [ 2 , 1 , 3 ] ) ) . toEqual ( [ 1 , 2 , 3 ] ) ;
13
13
14
- // expect(orderBy([2, 1, 3], '')).toEqual([1, 2, 3]);
15
- // expect(orderBy([2, 1, 3], [])).toEqual([1, 2, 3]);
16
- // expect(orderBy([2, 1, 3], [''])).toEqual([1, 2, 3]);
14
+ expect ( orderBy ( [ 2 , 1 , 3 ] , '' ) ) . toEqual ( [ 1 , 2 , 3 ] ) ;
15
+ expect ( orderBy ( [ 2 , 1 , 3 ] , [ ] ) ) . toEqual ( [ 1 , 2 , 3 ] ) ;
16
+ expect ( orderBy ( [ 2 , 1 , 3 ] , [ '' ] ) ) . toEqual ( [ 1 , 2 , 3 ] ) ;
17
17
18
- // expect(orderBy([2, 1, 3], '+')).toEqual([1, 2, 3]);
19
- // expect(orderBy([2, 1, 3], ['+'])).toEqual([1, 2, 3]);
18
+ expect ( orderBy ( [ 2 , 1 , 3 ] , '+' ) ) . toEqual ( [ 1 , 2 , 3 ] ) ;
19
+ expect ( orderBy ( [ 2 , 1 , 3 ] , [ '+' ] ) ) . toEqual ( [ 1 , 2 , 3 ] ) ;
20
20
21
- // expect(orderBy([2, 1, 3], '-')).toEqual([3, 2, 1]);
22
- // expect(orderBy([2, 1, 3], ['-'])).toEqual([3, 2, 1]);
21
+ expect ( orderBy ( [ 2 , 1 , 3 ] , '-' ) ) . toEqual ( [ 3 , 2 , 1 ] ) ;
22
+ expect ( orderBy ( [ 2 , 1 , 3 ] , [ '-' ] ) ) . toEqual ( [ 3 , 2 , 1 ] ) ;
23
23
} ) ;
24
24
25
25
@@ -220,7 +220,6 @@ describe('Filter: orderBy', function() {
220
220
} ) ;
221
221
222
222
223
- ///XXXXX
224
223
it ( 'should sort array by date predicate' , function ( ) {
225
224
// same dates
226
225
expect ( orderBy ( [
0 commit comments