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

Getting a Browser.Navigation.Key for testing #30

Closed
sporto opened this issue Sep 10, 2018 · 1 comment
Closed

Getting a Browser.Navigation.Key for testing #30

sporto opened this issue Sep 10, 2018 · 1 comment

Comments

@sporto
Copy link

sporto commented Sep 10, 2018

When using Browser.application I will put the Key in my model for later use.

When testing I want to create a model, but I don't have a way to get a Key. So we cannot test functions that take Model.

Seems that a function to get a Key is necessary to test.

@evancz
Copy link
Member

evancz commented Sep 13, 2018

Do you mind opening this up on elm-explorations/test instead?

I don't think the API here can give dummy versions out, and I think the testing API needs to be absolutely certain that a real Key cannot escape the tests

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

No branches or pull requests

2 participants