// TODO : test a faire par JF le 2022-06-09 ou 2022-06-10

import 'jest-extended'
import { Enseignant } from '../../src/classes/enseignant';
import { Etudiant } from '../../src/classes/etudiant';
import { LoginControlleur } from '../../src/controleurs/loginControleur'



describe('logInTest', () => {
    let ctrl: LoginControlleur;
    beforeEach(async() =>  {
        ctrl = new LoginControlleur();
    });

    it('LoginEtudiant', async() =>{
        let answer1;
        let answer2;
        let answer3;
        //expect(await ctrl.login("erreur", "credential")).toThrowError();
        // answer2 = await ctrl.login("first_name.last_name+1@gmail.com", "whocares");
        // expect(answer2).toBe({"id": "first_name.last_name+1@gmail.com", "isAnonyme": false, "isEnseignant": false, "listeCours": [], "nom": "last_name_1", "prenom": "first_name_1", "token": "e649905a37aa58c397647862118e3474"});
        // answer3 = await ctrl.login("cc-vincent.lacasse@etsmtl.ca", "whocares");
        // expect(answer3).toBe(Enseignant);

    });

    it('LoginEnseignant', async() =>{

    });

    it('LoginErreur', async() =>{

    });

    
});


describe('logOutTest', () => {
    beforeEach(async() =>  {
    });

    it('LogoutEtudiant', async() =>{

    });

    it('LogoutEnseignant', async() =>{

    });

    it('LogoutErreur', async() =>{

    });

});