| * Created by teone on 4/18/16. |
| // TODO write tests for log |
| xdescribe('The xos.helper module', function(){ |
| // beforeEach(module('xos.helpers')); |
| mockLog = jasmine.createSpyObj('logMock', ['info']); |
| angular.mock.module('xos.helpers', function($injector, $provide) { |
| $provide.value('$log', mockLog); |
| $provide.decorator('$log', $injector.get('logDecorator')); |
| // beforeEach(inject(($log) => { |
| describe('The log decorator', () => { |
| it('should not print anything', inject(($log) => { |
| // expect(mockLog.info).not.toHaveBeenCalled(); |
| xdescribe('if logging is enabled', () => { |
| window.location.href += '?debug=true' |
| it('should should log', () => { |
| console.log(log.info.logs); |