We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d20a1e7 commit 6f80dd8Copy full SHA for 6f80dd8
1 file changed
lib/svg/layoutConstants.test.ts
@@ -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