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 32f0f63 commit f56a396Copy full SHA for f56a396
src/pagination/test/pagination.spec.js
@@ -179,13 +179,18 @@ describe('pagination directive', function () {
179
});
180
181
describe('when `page` is not a number', function () {
182
- it('handles string', function() {
+ it('handles numerical string', function() {
183
updateCurrentPage('2');
184
expect(getPaginationEl(2)).toHaveClass('active');
185
186
updateCurrentPage('04');
187
expect(getPaginationEl(4)).toHaveClass('active');
188
189
+
190
+ it('defaults to 1 if non-numeric', function() {
191
+ updateCurrentPage('pizza');
192
+ expect(getPaginationEl(1)).toHaveClass('active');
193
+ });
194
195
196
describe('with `max-size` option', function () {
0 commit comments