Skip to content

Commit

Permalink
test: perf test
Browse files Browse the repository at this point in the history
  • Loading branch information
Layouwen committed Aug 19, 2024
1 parent 6ee5f78 commit 48a474a
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions tests/hsv.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ describe('hsv', () => {
});

it('hsv string to hex8', () => {
expect(new FastColor('hsv(270, 60%, 40%)').toHex8()).toBe('472966ff');
const source = new FastColor('hsv(270, 60%, 40%)').toHex8();
expect(source).toBe('472966ff');
expect(source).toBe('472966ff');
});

it('hsv string to hex8 string', () => {
expect(new FastColor('hsv(270, 60%, 40%)').toHex8String()).toBe(
'#472966ff',
);
const source = new FastColor('hsv(270, 60%, 40%)');
expect(source.toHex8String()).toBe('#472966ff');
expect(source.toHex8String(true)).toBe('#472966ff');
});

it('hsb string to hex', () => {
Expand Down

0 comments on commit 48a474a

Please sign in to comment.