@@ -35,3 +35,113 @@ it("${1}", function() {
35
35
${2 }
36
36
});
37
37
```
38
+
39
+ ## Expect
40
+
41
+ ### [ bdd-bect] toBeCloseTo
42
+
43
+ ``` javascript
44
+ expect (${1 }).toBeCloseTo (${2 }, ${3 });
45
+ ```
46
+
47
+ ### [ bdd-bec] toBeContain
48
+
49
+ ``` javascript
50
+ expect (${1 }).toBeContain (${2 });
51
+ ```
52
+
53
+ ### [ bdd-bed] toBeDefined
54
+
55
+ ``` javascript
56
+ expect (${1 }).toBeDefined ();
57
+ ```
58
+
59
+ ### [ bdd-bef] toBeFalsy
60
+
61
+ ``` javascript
62
+ expect (${1 }).toBeFalsy ();
63
+ ```
64
+
65
+ ### [ bdd-begt] toBeGreaterThan
66
+
67
+ ``` javascript
68
+ expect (${1 }).toBeGreaterThan (${2 });
69
+ ```
70
+
71
+ ### [ bdd-belt] toBeLessThan
72
+
73
+ ``` javascript
74
+ expect (${1 }).toBeLessThan (${2 });
75
+ ```
76
+
77
+ ### [ bdd-benan] toBeNaN
78
+
79
+ ``` javascript
80
+ expect (${1 }).toBeNaN ();
81
+ ```
82
+
83
+ ### [ bdd-ben] toBeNull
84
+
85
+ ``` javascript
86
+ expect (${1 }).toBeNull ();
87
+ ```
88
+
89
+ ### [ bdd-bet] toBeTruthy
90
+
91
+ ``` javascript
92
+ expect (${1 }).toBeTruthy ();
93
+ ```
94
+
95
+ ### [ bdd-beu] toBeUndefined
96
+
97
+ ``` javascript
98
+ expect (${1 }).toBeUndefined ();
99
+ ```
100
+
101
+ ### [ bdd-be] toBe
102
+
103
+ ``` javascript
104
+ expect (${1 }).toBe (${2 });
105
+ ```
106
+
107
+ ### [ bdd-equal] toEqual
108
+
109
+ ``` javascript
110
+ expect (${1 }).toEqual (${2 });
111
+ ```
112
+
113
+ ### [ bdd-hbct] toHaveBeenCalledTimes
114
+
115
+ ``` javascript
116
+ expect (${1 }).toHaveBeenCalledTimes (${2 });
117
+ ```
118
+
119
+ ### [ bdd-hbcw] toHaveBeenCalledWith
120
+
121
+ ``` javascript
122
+ expect (${1 }).toHaveBeenCalledWith (${2 }, ${3 });
123
+ ```
124
+
125
+ ### [ bdd-hbc] toHaveBeenCalled
126
+
127
+ ``` javascript
128
+ expect (${1 }).toHaveBeenCalled ();
129
+ ```
130
+
131
+ ### [ bdd-m] toMatch
132
+
133
+ ``` javascript
134
+ expect (${1 }).toMatch (${2 });
135
+ ```
136
+
137
+ ### [ bdd-te] toThrowError
138
+
139
+ ``` javascript
140
+ expect (${1 }).toThrowError (${2 });
141
+ ```
142
+
143
+ ### [ bdd-t] toThrow
144
+
145
+ ``` javascript
146
+ expect (${1 }).toThrow (${2 });
147
+ ```
0 commit comments