Advertisement
Guest User

Untitled

a guest
Jul 5th, 2015
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. describe('userApp', function(){
  2. beforeEach( function(){
  3. console.log("in beforeEach...");
  4. });
  5. it('should be able to log something', function(){
  6. console.log("in it...");
  7. });
  8. });
  9.  
  10. describe('userApp', function(){
  11. var $log;
  12. beforeEach(module('userApp', function($provide) {
  13. console.log("in beforeEach...");
  14. // Output messages
  15. $provide.value('$log', console);
  16. }));
  17. it('should be able to log something', function(){
  18. console.log("in it...");
  19. $log.info("Using $log for logging...");
  20. });
  21. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement