mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2024-12-27 21:51:54 +00:00
fix: TypeError in HistoryEntryImportDto
For reasons, during testing, reflect-metadata might not be imported. This causes the `@Type` annotation to crash the test with a TypeError. Signed-off-by: David Mehren <git@herrmehren.de>
This commit is contained in:
parent
f9448bb801
commit
89297e748f
1 changed files with 2 additions and 0 deletions
|
@ -11,6 +11,8 @@ import {
|
|||
IsString,
|
||||
ValidateNested,
|
||||
} from 'class-validator';
|
||||
// This needs to be here because of weird import-behaviour during tests
|
||||
import 'reflect-metadata';
|
||||
|
||||
import { BaseDto } from '../utils/base.dto.';
|
||||
|
||||
|
|
Loading…
Reference in a new issue