Skip to content

Commit 8d97962

Browse files
committed
styling
1 parent aa91391 commit 8d97962

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

src/compare/compare.service.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@ describe('CompareService', () => {
5151
jest.spyOn(utils, 'isHddStaticServiceConfigured').mockReturnValue(false);
5252

5353
expect(() => service.getComparator(ImageComparison.odiff)).toThrow(
54-
"Odiff can only be used with HDD static service. Please use another image comparison lib in project settings or switch STATIC_SERVICE envitonmental variable to HDD.");
54+
'Odiff can only be used with HDD static service. Please use another image comparison lib in project settings or switch STATIC_SERVICE envitonmental variable to HDD.'
55+
);
5556
});
5657

5758
it('should return pixelmatchService for unknown value', () => {

src/compare/compare.service.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export class CompareService {
1818
private readonly lookSameService: LookSameService,
1919
private readonly odiffService: OdiffService,
2020
private readonly prismaService: PrismaService
21-
) { }
21+
) {}
2222

2323
async getDiff({ projectId, data }: { projectId: string; data: ImageCompareInput }): Promise<DiffResult> {
2424
const project: Project = await this.prismaService.project.findUnique({ where: { id: projectId } });
@@ -37,7 +37,9 @@ export class CompareService {
3737
}
3838
case ImageComparison.odiff: {
3939
if (!isHddStaticServiceConfigured()) {
40-
throw new Error('Odiff can only be used with HDD static service. Please use another image comparison lib in project settings or switch STATIC_SERVICE envitonmental variable to HDD.');
40+
throw new Error(
41+
'Odiff can only be used with HDD static service. Please use another image comparison lib in project settings or switch STATIC_SERVICE envitonmental variable to HDD.'
42+
);
4143
}
4244

4345
return this.odiffService;

0 commit comments

Comments
 (0)