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

Unit Test Help #15

Closed
jonmiller1 opened this issue Apr 13, 2020 · 4 comments
Closed

Unit Test Help #15

jonmiller1 opened this issue Apr 13, 2020 · 4 comments

Comments

@jonmiller1
Copy link

I'm trying to write a component unit test. I've managed to inject Fluxor parts into my testhost but the events never seem to fire. Is there a sample unit test anywhere?

@mrpmorris
Copy link
Owner

You'll need to initialize the store
https://github.com/mrpmorris/Fluxor/blob/master/Source/Fluxor/IStore.cs#L78

@jonmiller1
Copy link
Author

Good catch. That didn't seem to work either. I'm trying to integrate with the TestHost code. I think the problem may have to do with not being able to register the middleware. Any help with a basic unit test sample would be greatly appreciated. https://blog.stevensanderson.com/2019/08/29/blazor-unit-testing-prototype/

@mrpmorris mrpmorris reopened this Apr 15, 2020
@mrpmorris
Copy link
Owner

If you could send me a minimal project so I can see exactly what you are trying to do then I'll have a look at it for you.

@mrpmorris
Copy link
Owner

I'm closing this due to inactivity. If you do create something that demonstrates the problem please let me know.

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