Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- describe('userApp', function(){
- beforeEach( function(){
- console.log("in beforeEach...");
- });
- it('should be able to log something', function(){
- console.log("in it...");
- });
- });
- describe('userApp', function(){
- var $log;
- beforeEach(module('userApp', function($provide) {
- console.log("in beforeEach...");
- // Output messages
- $provide.value('$log', console);
- }));
- it('should be able to log something', function(){
- console.log("in it...");
- $log.info("Using $log for logging...");
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement