mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-11-28 17:01:00 -05:00
fix(backend): Fix type errors in query builder mock
Signed-off-by: Tilman Vatteroth <git@tilmanvatteroth.de>
This commit is contained in:
parent
e23f0ff259
commit
088f2905a5
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ import { ObjectLiteral, Repository, SelectQueryBuilder } from 'typeorm';
|
|||
* @param returnValue The entity to return
|
||||
* @return The mocked query builder
|
||||
*/
|
||||
export function mockSelectQueryBuilder<T>(
|
||||
export function mockSelectQueryBuilder<T extends ObjectLiteral>(
|
||||
returnValue: T | null,
|
||||
): SelectQueryBuilder<T> {
|
||||
const mockedQueryBuilder: SelectQueryBuilder<T> = Mock.of<
|
||||
|
|
Loading…
Reference in a new issue