We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fd576f commit 2355536Copy full SHA for 2355536
src/directives/pagination/dirPagination.spec.js
@@ -337,6 +337,15 @@ describe('dirPagination directive', function() {
337
expect(getListItems().length).toEqual(10);
338
});
339
340
+ it('should allow track by with dot in itemsPerPage', function() {
341
+ function compile() {
342
+ $scope.foo = { perPage : 10 };
343
+ compileElement(myCollection, 5, 1, "item in collection | itemsPerPage: foo.perPage track by item");
344
+ }
345
+ expect(compile).not.toThrow();
346
+ expect(getListItems().length).toEqual(10);
347
+ });
348
+
349
350
351
describe('if currentPage attribute is not set', function() {
0 commit comments