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

Controller testing #15

Closed
kobvel opened this issue Feb 7, 2016 · 4 comments
Closed

Controller testing #15

kobvel opened this issue Feb 7, 2016 · 4 comments

Comments

@kobvel
Copy link

kobvel commented Feb 7, 2016

Hello, Thank you for great starting point of NG+ TS.

I am trying to test controller, but I have no access to inject function in beforEach construction inside spec file. Could you please create sample test for internal functions of controller?

@b091
Copy link
Owner

b091 commented Feb 17, 2016

Hi,

I'll create this sample (i even started), but I need to get some time for that.

Regards

@primavera133
Copy link

Would be much appreciated with some more elaborate examples of unit testing; a Service, a Controller, etc.

@b091
Copy link
Owner

b091 commented Mar 30, 2016

I've just added very simple test of Service and Controller.
You can find it here: Controller, Service

Is this enough for you guys or you need some more complex tests?

@b091 b091 closed this as completed Apr 2, 2016
@primavera133
Copy link

Cheers, very helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants