Skip to content

Commit 6f80dd8

Browse files
committed
test(layoutConstants): create layoutConstants tests
1 parent d20a1e7 commit 6f80dd8

1 file changed

Lines changed: 30 additions & 0 deletions

File tree

lib/svg/layoutConstants.test.ts

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
import { describe, it, expect } from 'vitest';
2+
import {
3+
GHOST_HEIGHT_PX,
4+
LOG_SCALE_MULTIPLIER,
5+
LINEAR_SCALE_MULTIPLIER,
6+
MAX_LOG_HEIGHT,
7+
MAX_LINEAR_HEIGHT,
8+
} from './layoutConstants';
9+
10+
describe('layoutConstants', () => {
11+
it('GHOST_HEIGHT_PX equals 4', () => {
12+
expect(GHOST_HEIGHT_PX).toBe(4);
13+
});
14+
15+
it('LOG_SCALE_MULTIPLIER equals 12', () => {
16+
expect(LOG_SCALE_MULTIPLIER).toBe(12);
17+
});
18+
19+
it('LINEAR_SCALE_MULTIPLIER equals 5', () => {
20+
expect(LINEAR_SCALE_MULTIPLIER).toBe(5);
21+
});
22+
23+
it('MAX_LOG_HEIGHT equals 80', () => {
24+
expect(MAX_LOG_HEIGHT).toBe(80);
25+
});
26+
27+
it('MAX_LINEAR_HEIGHT equals 50', () => {
28+
expect(MAX_LINEAR_HEIGHT).toBe(50);
29+
});
30+
});

0 commit comments

Comments
 (0)