Matteo Scandolo | 57483dd | 2015-11-05 11:58:53 +0100 | [diff] [blame] | 1 | 'use strict'; |
| 2 | |
Matteo Scandolo | ba4c9aa | 2016-02-11 09:35:29 -0800 | [diff] [blame] | 3 | describe('The xos.helper module', function(){ |
Matteo Scandolo | 57483dd | 2015-11-05 11:58:53 +0100 | [diff] [blame] | 4 | |
| 5 | var app, httpProvider; |
| 6 | |
| 7 | beforeEach(module('xos.helpers')); |
Matteo Scandolo | ba4c9aa | 2016-02-11 09:35:29 -0800 | [diff] [blame] | 8 | |
Matteo Scandolo | 57483dd | 2015-11-05 11:58:53 +0100 | [diff] [blame] | 9 | beforeEach(function(){ |
Matteo Scandolo | ba4c9aa | 2016-02-11 09:35:29 -0800 | [diff] [blame] | 10 | module(function(_$httpProvider_){ |
| 11 | console.log('beforeEach'); |
| 12 | httpProvider = _$httpProvider_; |
Matteo Scandolo | 57483dd | 2015-11-05 11:58:53 +0100 | [diff] [blame] | 13 | }); |
| 14 | }); |
| 15 | |
Matteo Scandolo | ba4c9aa | 2016-02-11 09:35:29 -0800 | [diff] [blame] | 16 | it('should set SetCSRFToken interceptor', inject(function($http){ |
| 17 | console.log('httpProvider',httpProvider); |
| 18 | expect(true).toBeTrue(); |
| 19 | // expect(httpProvider.interceptors).toContain('SetCSRFToken'); |
Matteo Scandolo | 57483dd | 2015-11-05 11:58:53 +0100 | [diff] [blame] | 20 | })); |
| 21 | |
| 22 | }); |