Skip to content

Conversation

lorthirk
Copy link
Contributor

@lorthirk lorthirk commented Dec 4, 2016

This is to make Angular UI router unit tests pass when using UI Router 1.0 (tested with 1.0.0-beta4). The directive itself was already good, only the unit tests needed a minor refactor.

@@ -46,6 +46,6 @@
},
"devDependencies": {
"angular-mocks": "1.3.0 - 1.5.*",
"angular-ui-router": "^0.3.2"
"angular-ui-router": "1.0.0-beta.3"
Copy link
Member

Choose a reason for hiding this comment

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

I don't think we want to update the devDependencies to the beta version. Is this necessary?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well, first of all we have to keep in mind that angular-ui-router is there only for the unit tests to run properly, since it's an optional runtime dependency. Given this, I updated it so we are sure that the refactored unit tests are passing properly since the refactor was indeed needed because of the breaking changes in 1.0.0.

In other words, 0.3.2 is perfectly fine and tests will pass with both version. Anyway I thought that testing against the newer version was safer. If you want me to remove it I'll do immediately 😄

Copy link
Member

@dtaylor113 dtaylor113 Dec 12, 2016

Choose a reason for hiding this comment

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

idk. It is a dev dependency, which to me seems like it could be cutting edge since it shouldn't effect production code. Just my 2 cents 😄

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Moreover, I think that 1.0.0-beta should be api-compatible with what will be 1.0.0 release.

Copy link
Member

@jeff-phillips-18 jeff-phillips-18 left a comment

Choose a reason for hiding this comment

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

👍

@jeff-phillips-18 jeff-phillips-18 merged commit efac7e0 into patternfly:master Dec 20, 2016
@lorthirk lorthirk deleted the supportUiRouter1.0 branch December 21, 2016 11:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants