Added tests for xosValidation
diff --git a/views/ngXosLib/xosHelpers/spec/ui/validaiton.test.js b/views/ngXosLib/xosHelpers/spec/ui/validaiton.test.js
new file mode 100644
index 0000000..acb7505
--- /dev/null
+++ b/views/ngXosLib/xosHelpers/spec/ui/validaiton.test.js
@@ -0,0 +1,40 @@
+/**
+ * © OpenCORD
+ *
+ * Created by teone on 4/15/16.
+ */
+
+(function () {
+ 'use strict';
+
+ describe('The xos.helper module', function(){
+ describe('The xos-validation component', () => {
+
+ let element, scope, isolatedScope;
+
+ beforeEach(module('xos.helpers'));
+
+ beforeEach(inject(($compile, $rootScope) => {
+
+ scope = $rootScope.$new();
+
+ scope.errors = {};
+
+ element = angular.element(`<xos-validation errors="errors"></xos-validation>`);
+ $compile(element)(scope);
+ scope.$digest();
+ isolatedScope = element.isolateScope().vm;
+ }));
+
+ it('should not show an alert', () => {
+ expect($(element).find('xos-alert > .alert')[0]).toHaveClass('ng-hide');
+ });
+
+ it('should show an alert', () => {
+ scope.errors.email = true;
+ scope.$digest();
+ expect($(element).find('xos-alert > .alert')[0]).not.toHaveClass('ng-hide');
+ });
+ });
+ });
+})();
\ No newline at end of file
diff --git a/views/ngXosLib/xosHelpers/src/services/csrfToken.interceptor.js b/views/ngXosLib/xosHelpers/src/services/csrfToken.interceptor.js
index 9fdc17b..5f87de5 100644
--- a/views/ngXosLib/xosHelpers/src/services/csrfToken.interceptor.js
+++ b/views/ngXosLib/xosHelpers/src/services/csrfToken.interceptor.js
@@ -12,7 +12,6 @@
.factory('SetCSRFToken', setCSRFToken);
function setCSRFToken($cookies) {
- console.log($cookies);
return {
request: function(request){
if(request.method !== 'GET'){