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;
	});
});

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

const expect = chai.expect;

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

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

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

Remove unnecessary test