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

fix(tab): make active optional #5489

Closed
wants to merge 1 commit into from
Closed

fix(tab): make active optional #5489

wants to merge 1 commit into from

Conversation

RobJacobs
Copy link
Contributor

This change makes the active binding added under #5425 optional. Plunk with updated code.

expectContents(['first content is 1', 'second content is 2']);
expect(titles().eq(0)).toHaveClass('active');
expect(titles().eq(1)).not.toHaveClass('active');
expect(scope.active).toBe(1);
Copy link
Contributor

Choose a reason for hiding this comment

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

This is the wrong way to test this - you need to grab the controller via elm.controller('uibTabset') and check active on that

Copy link
Contributor Author

Choose a reason for hiding this comment

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

DOH! Sorry I missed that, I'm surprised it didn't fail when running the test in Chrome?

This change makes the active binding added under #5425 optional.

Closes #5489
@wesleycho
Copy link
Contributor

LGTM

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.

4 participants