Skip to content

Commit

Permalink
Forgot to save all files...
Browse files Browse the repository at this point in the history
  • Loading branch information
dlemstra committed Nov 28, 2024
1 parent adb3078 commit 92489ef
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions tests/magick-image/transform-color-space.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TestFiles } from '@test/test-files';
describe('MagickImage#transformColorSpace', () => {
it('should return false when the image has no color profile', () => {
TestFiles.Images.Builtin.logo.use((image) => {
const target = TestFiles.Profiles.Color.sRGB.load();
const target = TestFiles.Profiles.Color.SRGB.load();
const result = image.transformColorSpace(target);
expect(result).toBe(false);
});
Expand All @@ -25,15 +25,15 @@ describe('MagickImage#transformColorSpace', () => {
it('should return false when the source profile color space is different', () => {
TestFiles.Images.fujiFilmFinePixS1ProJpg.use((image) => {
const source = TestFiles.Profiles.Color.USWebCoatedSWOP.load();
const target = TestFiles.Profiles.Color.sRGB.load();
const target = TestFiles.Profiles.Color.SRGB.load();
const result = image.transformColorSpace(source, target);
expect(result).toBe(false);
});
});

it('should return true when the the colorspace could be transformed', () => {
TestFiles.Images.fujiFilmFinePixS1ProJpg.use((image) => {
const source = TestFiles.Profiles.Color.sRGB.load();
const source = TestFiles.Profiles.Color.SRGB.load();
const target = TestFiles.Profiles.Color.USWebCoatedSWOP.load();
const result = image.transformColorSpace(source, target);
expect(result).toBe(true);
Expand Down
2 changes: 1 addition & 1 deletion tests/profiles/color/color-profile/properties.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { TestFiles } from '@test/test-files';

describe('ColorProfile#properties', () => {
it('should return the correct values for an sRGB profile', () => {
const colorProfile = TestFiles.Profiles.Color.sRGB.load();
const colorProfile = TestFiles.Profiles.Color.SRGB.load();

expect(colorProfile.name).toBe('icm');
expect(colorProfile.data.length).toBe(3144);
Expand Down

0 comments on commit 92489ef

Please sign in to comment.