Skip to content

Commit 6178439

Browse files
committed
Update testRunResult.dto.ts
1 parent 1c8b8d2 commit 6178439

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/test-runs/dto/testRunResult.dto.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,24 @@
11
import { TestRun, TestStatus, TestVariation } from '@prisma/client';
2+
import { ApiProperty } from '@nestjs/swagger';
23

34
export class TestRunResultDto {
5+
@ApiProperty()
46
id: string;
7+
@ApiProperty()
58
imageName: string;
9+
@ApiProperty()
610
diffName?: string;
11+
@ApiProperty()
712
diffPercent: number;
13+
@ApiProperty()
814
diffTollerancePercent?: number;
15+
@ApiProperty()
916
pixelMisMatchCount?: number;
17+
@ApiProperty()
1018
status: TestStatus;
19+
@ApiProperty()
1120
url: string;
21+
@ApiProperty()
1222
merge: boolean;
1323

1424
constructor(testRun: TestRun, testVariation: TestVariation) {

0 commit comments

Comments
 (0)