Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Commit 1aec96c

Browse files
committed
style(*): Fix nits.
1 parent f01a643 commit 1aec96c

File tree

1 file changed

+10
-13
lines changed

1 file changed

+10
-13
lines changed

test/ng/filter/orderBySpec.js

+10-13
Original file line numberDiff line numberDiff line change
@@ -91,21 +91,18 @@ describe('Filter: orderBy', function() {
9191
.toEqualData([{"원": 31000}, {"원": 76000}, {"원": 156000}]);
9292
});
9393

94-
it('should maintain order in an array of objects when no predicate is provided', function(){
95-
var array = [{a:1}, {b:2}, {c:3}];
96-
97-
expect(orderBy(array)).toEqualData(array);
98-
expect(orderBy(array, '')).toEqualData(array);
99-
expect(orderBy(array, [])).toEqualData(array);
100-
expect(orderBy(array, [''])).toEqualData(array);
101-
expect(orderBy(array, ['+'])).toEqualData(array);
94+
it('should maintain order in an array of objects when no predicate is provided', function () {
95+
var array = [{a: 1}, {b: 2}, {c: 3}];
96+
97+
expect(orderBy(array)).toEqualData(array);
98+
expect(orderBy(array, '')).toEqualData(array);
99+
expect(orderBy(array, [])).toEqualData(array);
100+
expect(orderBy(array, [''])).toEqualData(array);
101+
expect(orderBy(array, ['+'])).toEqualData(array);
102102
});
103103

104-
it('should inverse order in an array of objects when minus is provided without predicate', function () {
105-
var array = [{a: 1}, {b: 2}, {c: 3}],
106-
inverseArray = [{c: 3}, {b: 2}, {a: 1}];
107-
108-
expect(orderBy(array, ['-'])).toEqualData(inverseArray);
104+
it('should inverse order in an array of objects when minus is provided without predicate', function() {
105+
expect(orderBy([{a: 1}, {b: 2}, {c: 3}], ['-'])).toEqualData([{c: 3}, {b: 2}, {a: 1}]);
109106
});
110107

111108
it('should throw if quoted string predicate is quoted incorrectly', function() {

0 commit comments

Comments
 (0)