-
-
Notifications
You must be signed in to change notification settings - Fork 6
/
test.user-settings.js
54 lines (53 loc) · 1.87 KB
/
test.user-settings.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
import React from "react";
import Component, { meta } from "./test.md";
import { render } from "@testing-library/react";
describe("jest transformer md", () => {
test("that meta is correct", () => {
expect(meta.title).toBe("Jest Transformer MD");
expect(meta.path).toBe("https://soulpicks.com");
expect(meta.from).toBe("Batman");
expect(meta.location).toBe("Amsterdam");
});
test("that it still renders in react", () => {
const { asFragment } = render(<Component />);
expect(asFragment()).toMatchInlineSnapshot(`
<DocumentFragment>
<p>
Every man who has lotted here over the centuries, has looked up to the light and imagined climbing to freedom. So easy, so simple! And like shipwrecked men turning to seawater foregoing uncontrollable thirst, many have died trying. And then here there can be no true despair without hope. So as I terrorize Gotham, I will feed its people hope to poison their souls. I will let them believe that they can survive so that you can watch them climbing over each other to stay in the sun. You can watch me torture an entire city. And then when you've truly understood the depth of your failure, we will fulfill Ra's Al Ghul's destiny. We will destroy Gotham. And then, when that is done, and Gotham is... ashes. Then you have my permission to die.
</p>
<h1>
Heading 1
</h1>
<h2>
Heading 2
</h2>
<h3>
Heading 3
</h3>
<h4>
Heading 4
</h4>
<h5>
Heading 5
</h5>
<h6>
Heading 6
</h6>
<p>
This is a list:
</p>
<ul>
<li>
List item 1
</li>
<li>
List item 2
</li>
<li>
List item 3
</li>
</ul>
</DocumentFragment>
`);
});
});