-
Notifications
You must be signed in to change notification settings - Fork 6.7k
feat(carousel): exposing next and prev on the controller. #4853
feat(carousel): exposing next and prev on the controller. #4853
Conversation
Interesting note that we don't currently have functional tests in place for testing that |
@icfantv actually we do. https://github.com/angular-ui/bootstrap/blob/master/src/carousel/test/carousel.spec.js#L175-L195 Those click are calling the appropriate methods. About this PR. What is the use case? and I like better tests (more than checking that there is a function, those are poor). |
I have an element directive that uses
I couldn't agree more. The only reason I did this was because Thanks for the great work on this lib! |
Just pushed this to the PR, so it's now verifying that the methods are one and the same between
Also, I've had edge cases where the markup in |
Ahhhh, my bad. I was looking for direct invocations and not, you know, actually clicking the thing that matters...the navigational elements. |
I'm ok with this PR, but I'm not sure tests really make any sense, or at least these anyhow. |
I'm open to suggestions. |
I was thinking that this is ok with no extra tests - I'll wait for @Foxandxss's opinion here though. |
Gotcha. |
Thanks for merging this! |
No description provided.