Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to upgrade unit tests dependent on TestLocation? #1460

Closed
kevzettler opened this issue Jul 1, 2015 · 3 comments
Closed

How to upgrade unit tests dependent on TestLocation? #1460

kevzettler opened this issue Jul 1, 2015 · 3 comments

Comments

@kevzettler
Copy link

I have some unit tests dependent on :
TestLocation = require('react-router/lib/locations/TestLocation');

I'm trying to upgrade to 1.0.0 beta and see that this is TestLocation no longer in the repo.

Whats the upgrade path here?

@taion
Copy link
Contributor

taion commented Jul 23, 2015

I just had the same question. Looks like the answer is MemoryHistory.

@kevzettler
Copy link
Author

👍 will close once confirmed

@knowbody
Copy link
Contributor

knowbody commented Sep 9, 2015

for that use createMemoryHistory from History

It's also included in Getting started docs

@knowbody knowbody closed this as completed Sep 9, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 23, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants