Update bun.lock and remove DependencyManager tests
- Added new dependency "@techniker-me/tools" and updated existing dependencies to specific versions in bun.lock - Removed the DependencyManager test file as part of codebase cleanup
This commit is contained in:
14
__test__/mocks/MockUserServices.ts
Normal file
14
__test__/mocks/MockUserServices.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import type {Logger} from './MockLogger';
|
||||
import type {Database} from './MockDatabase';
|
||||
|
||||
export class UserService {
|
||||
constructor(
|
||||
private db: Database,
|
||||
private logger: Logger
|
||||
) {}
|
||||
|
||||
public getUser(id: number) {
|
||||
this.logger.debug(`Getting user ${id}`);
|
||||
return this.db.query(`SELECT * FROM users WHERE id = ${id}`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user