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

Move live controller code into service, create tests for it #82

Open
randomouscrap98 opened this issue Mar 15, 2022 · 0 comments
Open

Comments

@randomouscrap98
Copy link
Owner

Just like the file controller, I don't want all this code in the controllers that isn't tested, or testable if I decide not to test it now but require tests later when it inevitably breaks.

At the very least, even if you don't write tests for it, pull the code out and make it testable. Then, anytime in the future there's a bug, write a test for it. Bad test procedure but at least the code will be testable.

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

1 participant