Unitesting, how to mock mongodb in Angularjs unit test?

0 votes
asked Mar 16, 2016 by just_8171 (1,180 points)
Please let me know if I should provide more details. Just as title, I want write unit test for function in angular js.

5 Answers

0 votes
answered Jun 2, 2016 by or_This (620 points)
selected Jun 4, 2016 by Lbh_320
Best answer
They all work the same and are only there for convenience
+1 vote
answered Mar 30, 2016 by directory (1,070 points)

We have not yet hooked our server to mongodb, w.
We also organized our project structure with angularjs seed.
Refer Kayiti Tech Log: Lesson 5: Angularjs Tutorial: Backend - Node Express Mongodb Angularjs integration ($http, deferred promises with $q, $resource) for more info
+1 vote
answered Apr 10, 2016 by Declaration (180 points)
Check out http://technokayiti.blogspot.com/2013/06/lesson-5-angularjs-tutorial-backend.html for an excellent resource on the topic aside from man bash
Hope this might help
0 votes
answered Jun 2, 2016 by above_Finist (290 points)
My tips here is just try the demo https://github.com/angular/angular-seed first using all of your own browser
I wish I could find my implementation
+1 vote
answered Jun 2, 2016 by Svk_5180 (260 points)
They all work the same and are only there for convenience

What is Geekub?

Q&A site for professional and enthusiast programmers, software developers and other technical users. With your help, we hope to work together to build a library of detailed answers to just about any question that is related to programming!