-
-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathreaction.test.ts
More file actions
57 lines (39 loc) · 1.16 KB
/
reaction.test.ts
File metadata and controls
57 lines (39 loc) · 1.16 KB
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
55
56
57
import { Reaction } from "../src/reaction";
describe("reaction", () => {
it("defaults to +1", () => {
const reaction = new Reaction("no");
expect(reaction.type).toEqual("+1");
});
it("allows +1", () => {
const reaction = new Reaction("+1");
expect(reaction.type).toEqual("+1");
});
it("allows -1", () => {
const reaction = new Reaction("-1");
expect(reaction.type).toEqual("-1");
});
it("allows laugh", () => {
const reaction = new Reaction("laugh");
expect(reaction.type).toEqual("laugh");
});
it("allows confused", () => {
const reaction = new Reaction("confused");
expect(reaction.type).toEqual("confused");
});
it("allows heart", () => {
const reaction = new Reaction("heart");
expect(reaction.type).toEqual("heart");
});
it("allows hooray", () => {
const reaction = new Reaction("hooray");
expect(reaction.type).toEqual("hooray");
});
it("allows rocket", () => {
const reaction = new Reaction("rocket");
expect(reaction.type).toEqual("rocket");
});
it("allows eyes", () => {
const reaction = new Reaction("eyes");
expect(reaction.type).toEqual("eyes");
});
});