import loginValidation from '../lib/validation/loginValidation';
import chai from 'chai';

const expect = chai.expect;

describe('loginValidation', function () {
	it('should pass validation with an email and password', function(){
		let email = "john.doe@example.com";
		let password = "abcdefghijklmnopqrstuvwxyz";

		let validation = loginValidation({
			email,
			password
		});

    expect(validation.valid).to.be.true;

	});

	it('should not pass validation with a password longer than 50 characters', function(){
		let email = "john.doe@example.com";
		let password = "abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz";

		let validation = loginValidation({
			email,
			password
		});

		expect(validation.valid).to.be.false;
	});
});

@@ -145,23 +145,18 @@
 n', 
-function () %7B%0A%09
+() =%3E %7B%0A  
 it('
@@ -207,32 +207,32 @@
 sword', 
-function()%7B%0A%09%09le
+() =%3E %7B%0A    cons
 t email 
@@ -225,33 +225,33 @@
   const email = 
-%22
+'
 john.doe@example
@@ -246,39 +246,43 @@
 .doe@example.com
-%22;%0A%09%09le
+';%0A    cons
 t password = %22ab
@@ -270,33 +270,33 @@
 onst password = 
-%22
+'
 abcdefghijklmnop
@@ -301,32 +301,36 @@
 opqrstuvwxyz
-%22;%0A%0A%09%09le
+';%0A%0A    cons
 t validation
@@ -354,353 +354,49 @@
 n(%7B%0A
-%09%09%09email,%0A%09%09%09password%0A%09%09%7D);%0A%0A    expect(validation.valid).to.be.true;%0A%0A%09%7D);%0A%0A%09it('should not pass validation with a password longer than 50 characters', function()%7B%0A%09%09let email = %22john.doe@example.com%22;%0A%09%09let password = %22abcdefghijklmnopqrstuvwxyzabcdefghijklmnopqrstuvwxyz%22;%0A%0A%09%09let validation = loginValidation(%7B%0A%09%09%09email,%0A%09%09%09password%0A%09%09%7D);%0A%0A%09%09
+      email,%0A      password%0A    %7D);%0A%0A    
 expe
@@ -426,16 +426,16 @@
 .be.
-false;%0A%09
+true;%0A  
 %7D);%0A

Remove unnecessary test