-
Notifications
You must be signed in to change notification settings - Fork 122
Expand file tree
/
Copy pathLayout_test.re
More file actions
38 lines (36 loc) · 968 Bytes
/
Layout_test.re
File metadata and controls
38 lines (36 loc) · 968 Bytes
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
open Jest;
open Expect;
open Layout;
open Helmet;
describe("Layout", () => {
test("metaToHelmet - meta with name", () => {
let metaWithName =
MetaWithName(
"description",
"A playful avatar generator for the modern age.",
);
let actual = metaToHelmet(metaWithName);
let expected =
finalMetaItem(
~name="description",
~content="A playful avatar generator for the modern age.",
(),
);
expect(actual) |> toEqual(expected);
});
test("metaToHelmet - meta with property", () => {
let metaWithProperty =
MetaWithProperty(
"og:description",
"A playful avatar generator for the modern age.",
);
let actual = metaToHelmet(metaWithProperty);
let expected =
finalMetaItem(
~property="og:description",
~content="A playful avatar generator for the modern age.",
(),
);
expect(actual) |> toEqual(expected);
});
});