Skip to content

Commit

Permalink
Lint, fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesnw committed Feb 4, 2025
1 parent c9969e9 commit d318d7e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/lib/components/colors/Header.svelte
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<script lang="ts">
import { inGamut,type PlainColorObject, serialize, to } from 'colorjs.io/fn';
import { inGamut, type PlainColorObject, serialize, to } from 'colorjs.io/fn';
import { type Writable } from 'svelte/store';
import CopyButton from '$lib/components/util/CopyButton.svelte';
Expand Down
2 changes: 1 addition & 1 deletion test/lib/components/GamutSelect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ describe('Space', () => {

expect(get(gamut)).toBe(INITIAL_VALUES.gamut);

const select = getByLabelText('Gamut');
const select = getByLabelText('Show Gamut');
await fireEvent.change(select, { target: { value: 'rec2020' } });

expect(get(gamut)).toBe('rec2020');
Expand Down
2 changes: 1 addition & 1 deletion test/lib/components/SpaceSelect.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ describe('Space', () => {
expect(get(bg).space.id).toBe(INITIAL_VALUES.format);
expect(get(fg).space.id).toBe(INITIAL_VALUES.format);

const select = getByLabelText('Format');
const select = getByLabelText('Color Format');
await fireEvent.change(select, { target: { value: 'hsl' } });

expect(get(bg).space.id).toBe('hsl');
Expand Down

0 comments on commit d318d7e

Please sign in to comment.