Skip to content
This repository has been archived by the owner on May 29, 2019. It is now read-only.

feat(paging): factor out common controller code #4968

Closed
wants to merge 1 commit into from

Conversation

wesleycho
Copy link
Contributor

  • Create paging factory for creating common controller for the
    pagination and pager components

This finishes off #4803.

@Foxandxss
Copy link
Contributor

What I am not happy about is the tests. You refactorized it in different files but there is no paging tests.

@wesleycho
Copy link
Contributor Author

Do we require tests with this change? All this is doing is technically exposing the lack of tests on the old UibPaginationController, since the tests in this library is behavioral in general.

@Foxandxss
Copy link
Contributor

I hear you Wes. But I don't like to add new "components" without any kind of tests. I know that all we do is behavioral.

So here we are pretending that the .create method just do what you think it does.

@wesleycho
Copy link
Contributor Author

Added tests

@wesleycho wesleycho force-pushed the feat/paging-factory branch 3 times, most recently from 7f67e64 to 5dedeae Compare November 27, 2015 13:36
beforeEach(module('ui.bootstrap.paging'));
beforeEach(inject(function(_$rootScope_, uibPaging) {
$rootScope = _$rootScope_;
paging = uibPaging;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You're saving it for no reason.

- Create paging factory for creating common controller for the
  pagination and pager components
@Foxandxss
Copy link
Contributor

It is good for me. I still need to sweep all of this, so I will do a second pass by then.

@wesleycho wesleycho closed this in f2f8c4e Nov 27, 2015
@wesleycho wesleycho deleted the feat/paging-factory branch November 27, 2015 21:41
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants