blob: 60e8c63bb46ab2d98cb3b9efefe3a0790b435a18 [file] [log] [blame]
'use strict';
describe('The xos.helper module', function(){
var SetCSRFToken, httpProviderObj;
beforeEach(module('xos.helpers'));
beforeEach(module(function(_$httpProvider_){
httpProviderObj = _$httpProvider_;
}));
beforeEach(angular.mock.inject(function(_SetCSRFToken_){
SetCSRFToken = _SetCSRFToken_;
}));
it('should exist', () => {
expect(SetCSRFToken).toBeDefined();
});
xit('should set SetCSRFToken interceptor', () => {
expect(httpProviderObj).toBeDefined();
expect(httpProviderObj.interceptors).toContain('SetCSRFToken');
});
});