|
1 | | -import { describe, it, expect } from "vitest"; |
2 | 1 | import { render } from "@testing-library/react"; |
| 2 | +import { describe, expect, it } from "vitest"; |
3 | 3 | import Odontogram from "../src/Odontogram"; |
4 | 4 |
|
5 | 5 | describe("Odontogram Component Snapshots", () => { |
6 | | - it("renders full odontogram correctly", () => { |
7 | | - const { container } = render( |
8 | | - <Odontogram |
9 | | - theme="light" |
10 | | - colors={{ |
11 | | - darkBlue: "#0000ff", |
12 | | - baseBlue: "#8888ff", |
13 | | - lightBlue: "#ccccff", |
14 | | - }} |
15 | | - showHalf="full" |
16 | | - /> |
17 | | - ); |
| 6 | + it("renders full odontogram correctly", () => { |
| 7 | + const { container } = render( |
| 8 | + <Odontogram |
| 9 | + theme="light" |
| 10 | + colors={{ |
| 11 | + darkBlue: "#0000ff", |
| 12 | + baseBlue: "#8888ff", |
| 13 | + lightBlue: "#ccccff", |
| 14 | + }} |
| 15 | + showHalf="full" |
| 16 | + />, |
| 17 | + ); |
18 | 18 |
|
19 | | - expect(container).toMatchSnapshot(); |
20 | | - }); |
| 19 | + expect(container).toMatchSnapshot(); |
| 20 | + }); |
21 | 21 |
|
22 | | - it("renders upper half odontogram", () => { |
23 | | - const { container } = render( |
24 | | - <Odontogram |
25 | | - theme="light" |
26 | | - colors={{ |
27 | | - darkBlue: "#0000ff", |
28 | | - baseBlue: "#8888ff", |
29 | | - lightBlue: "#ccccff", |
30 | | - }} |
31 | | - showHalf="upper" |
32 | | - /> |
33 | | - ); |
| 22 | + it("renders upper half odontogram", () => { |
| 23 | + const { container } = render( |
| 24 | + <Odontogram |
| 25 | + theme="light" |
| 26 | + colors={{ |
| 27 | + darkBlue: "#0000ff", |
| 28 | + baseBlue: "#8888ff", |
| 29 | + lightBlue: "#ccccff", |
| 30 | + }} |
| 31 | + showHalf="upper" |
| 32 | + />, |
| 33 | + ); |
34 | 34 |
|
35 | | - expect(container).toMatchSnapshot(); |
36 | | - }); |
| 35 | + expect(container).toMatchSnapshot(); |
| 36 | + }); |
37 | 37 |
|
38 | | - it("renders lower half odontogram", () => { |
39 | | - const { container } = render( |
40 | | - <Odontogram |
41 | | - theme="light" |
42 | | - colors={{ |
43 | | - darkBlue: "#0000ff", |
44 | | - baseBlue: "#8888ff", |
45 | | - lightBlue: "#ccccff", |
46 | | - }} |
47 | | - showHalf="lower" |
48 | | - /> |
49 | | - ); |
| 38 | + it("renders lower half odontogram", () => { |
| 39 | + const { container } = render( |
| 40 | + <Odontogram |
| 41 | + theme="light" |
| 42 | + colors={{ |
| 43 | + darkBlue: "#0000ff", |
| 44 | + baseBlue: "#8888ff", |
| 45 | + lightBlue: "#ccccff", |
| 46 | + }} |
| 47 | + showHalf="lower" |
| 48 | + />, |
| 49 | + ); |
50 | 50 |
|
51 | | - expect(container).toMatchSnapshot(); |
52 | | - }); |
| 51 | + expect(container).toMatchSnapshot(); |
| 52 | + }); |
53 | 53 |
|
54 | | - it("renders dark theme correctly", () => { |
55 | | - const { container } = render( |
56 | | - <Odontogram |
57 | | - theme="dark" |
58 | | - colors={{ |
59 | | - darkBlue: "#222222", |
60 | | - baseBlue: "#444444", |
61 | | - lightBlue: "#666666", |
62 | | - }} |
63 | | - showHalf="full" |
64 | | - /> |
65 | | - ); |
| 54 | + it("renders dark theme correctly", () => { |
| 55 | + const { container } = render( |
| 56 | + <Odontogram |
| 57 | + theme="dark" |
| 58 | + colors={{ |
| 59 | + darkBlue: "#222222", |
| 60 | + baseBlue: "#444444", |
| 61 | + lightBlue: "#666666", |
| 62 | + }} |
| 63 | + showHalf="full" |
| 64 | + />, |
| 65 | + ); |
66 | 66 |
|
67 | | - expect(container).toMatchSnapshot(); |
68 | | - }); |
| 67 | + expect(container).toMatchSnapshot(); |
| 68 | + }); |
69 | 69 | }); |
0 commit comments