1
0
mirror of https://github.com/bpatrik/pigallery2.git synced 2025-12-13 23:56:56 +02:00

improving tests

This commit is contained in:
Patrik J. Braun
2018-03-30 15:30:30 -04:00
parent 9412fcba4d
commit f8e4542c66
144 changed files with 2041 additions and 2001 deletions

View File

@@ -1,8 +1,8 @@
import {UserDTO, UserRoles} from "../../../common/entities/UserDTO";
import {IUserManager} from "../interfaces/IUserManager";
import {UserEntity} from "./enitites/UserEntity";
import {SQLConnection} from "./SQLConnection";
import {PasswordHelper} from "../PasswordHelper";
import {UserDTO, UserRoles} from '../../../common/entities/UserDTO';
import {IUserManager} from '../interfaces/IUserManager';
import {UserEntity} from './enitites/UserEntity';
import {SQLConnection} from './SQLConnection';
import {PasswordHelper} from '../PasswordHelper';
export class UserManager implements IUserManager {
@@ -22,7 +22,7 @@ export class UserManager implements IUserManager {
}
if (pass && !PasswordHelper.comparePassword(pass, user.password)) {
throw "No entry found";
throw 'No entry found';
}
return user;
@@ -64,7 +64,7 @@ export class UserManager implements IUserManager {
}
public async changePassword(request: any) {
throw new Error("not implemented"); //TODO: implement
throw new Error('not implemented'); //TODO: implement
}
}