Skip to content

Conversation

@pkt-zer0
Copy link
Contributor

Fixes issue with changes to $stateParams leaking from one test case into another. Functionality is otherwise unaffected.

@nateabele
Copy link
Contributor

@pkt-zer0 The patch looks good, thanks. Please clean it up to address these: http://prjs.radify.io/#/angular-ui/ui-router/pulls/2202

A fresh object is created each time $stateParams is initialized, instead of reusing the same instance. This prevents leaking state between unit tests.
@pkt-zer0
Copy link
Contributor Author

Ok, should be fixed now.

@nateabele
Copy link
Contributor

Sweet, :^5:.

nateabele added a commit that referenced this pull request Aug 25, 2015
$stateParams reset between tests
@nateabele nateabele merged commit 0e557ca into angular-ui:master Aug 25, 2015
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.

2 participants