mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-18 09:04:44 -04: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,
|
IsString,
|
||||||
ValidateNested,
|
ValidateNested,
|
||||||
} from 'class-validator';
|
} from 'class-validator';
|
||||||
|
// This needs to be here because of weird import-behaviour during tests
|
||||||
|
import 'reflect-metadata';
|
||||||
|
|
||||||
import { BaseDto } from '../utils/base.dto.';
|
import { BaseDto } from '../utils/base.dto.';
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue