Skip to content

Commit 2653cb0

Browse files
committed
test
1 parent ac9464e commit 2653cb0

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

src/compare/libs/pixelmatch/pixelmatch.service.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ export class PixelmatchService implements ImageComparator {
6565
height: maxHeight,
6666
});
6767
result.pixelMisMatchCount = pixelmatch(
68-
baselineIgnored.data as Uint8Array,
69-
imageIgnored.data as Uint8Array,
70-
diff.data as Uint8Array,
68+
new Uint8Array(baselineIgnored.data.buffer, baselineIgnored.data.byteOffset, baselineIgnored.data.byteLength),
69+
new Uint8Array(imageIgnored.data.buffer, imageIgnored.data.byteOffset, imageIgnored.data.byteLength),
70+
new Uint8Array(diff.data.buffer, diff.data.byteOffset, diff.data.byteLength),
7171
maxWidth,
7272
maxHeight,
7373
{

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@ export class TestRunResultDto extends TestRunDto {
77
pixelMisMatchCount?: number;
88
@ApiProperty()
99
url: string;
10-
@ApiProperty()
11-
baselineName: string;
12-
1310
constructor(testRun: TestRun, testVariation: TestVariation) {
1411
super(testRun);
1512
this.baselineName = testVariation.baselineName;

0 commit comments

Comments
 (0)