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

Commit 25e492b

Browse files
committed
fix(orderBy): Change filter to orderBy in error thrown.
1 parent 33fd985 commit 25e492b

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

src/ng/filter/orderBy.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ orderByFilter.$inject = ['$parse'];
177177
function orderByFilter($parse) {
178178
return function(array, sortPredicate, reverseOrder) {
179179

180-
if (!(isArrayLike(array))) throw minErr('filter')('notarray', 'Expected array but received: {0}', array);
180+
if (!(isArrayLike(array))) throw minErr('orderBy')('notarray', 'Expected array but received: {0}', array);
181181

182182
if (!isArray(sortPredicate)) { sortPredicate = [sortPredicate]; }
183183
if (sortPredicate.length === 0) { sortPredicate = ['+']; }

test/ng/directive/ngOptionsSpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ describe('ngOptions', function() {
125125

126126
.directive('oCompileContents', function() {
127127
return {
128-
link: function(scope, element) {
128+
link: function(scope, element) {
129129
linkLog.push('linkCompileContents');
130130
$compile(element.contents())(scope);
131131
}

test/ng/filter/orderBySpec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ describe('Filter: orderBy', function() {
1010
describe('(Arrays)', function() {
1111
it('should throw an exception if no array-like object is provided', function() {
1212
expect(function() { orderBy({}); }).
13-
toThrowMinErr('filter', 'notarray', 'Expected array but received: {}');
13+
toThrowMinErr('orderBy', 'notarray', 'Expected array but received: {}');
1414
});
1515

1616
it('should return sorted array if predicate is not provided', function() {

0 commit comments

Comments
 (0)