|
6 | 6 |
|
7 | 7 | ## Module Test.Mocha |
8 | 8 |
|
9 | | -### Types |
| 9 | +#### `Before` |
10 | 10 |
|
11 | | - data After :: ! |
| 11 | +``` purescript |
| 12 | +data Before :: ! |
| 13 | +``` |
12 | 14 |
|
13 | | - data Before :: ! |
14 | 15 |
|
15 | | - data Describe :: ! |
| 16 | +#### `Describe` |
16 | 17 |
|
17 | | - type DoDescribe = forall e a. String -> Eff e a -> Eff (describe :: Describe | e) Unit |
| 18 | +``` purescript |
| 19 | +data Describe :: ! |
| 20 | +``` |
18 | 21 |
|
19 | | - type DoIt = forall e a. String -> Eff e a -> Eff (it :: It | e) Unit |
20 | 22 |
|
21 | | - data Done :: ! |
| 23 | +#### `It` |
22 | 24 |
|
23 | | - data DoneToken where |
24 | | - DoneToken :: DoneToken |
| 25 | +``` purescript |
| 26 | +data It :: ! |
| 27 | +``` |
25 | 28 |
|
26 | | - data It :: ! |
27 | 29 |
|
| 30 | +#### `After` |
28 | 31 |
|
29 | | -### Values |
| 32 | +``` purescript |
| 33 | +data After :: ! |
| 34 | +``` |
30 | 35 |
|
31 | | - after :: forall e a. Eff e a -> Eff (after :: After | e) Unit |
32 | 36 |
|
33 | | - afterEach :: forall e a. Eff e a -> Eff (after :: After | e) Unit |
| 37 | +#### `Done` |
34 | 38 |
|
35 | | - before :: forall e a. Eff e a -> Eff (before :: Before | e) Unit |
| 39 | +``` purescript |
| 40 | +data Done :: ! |
| 41 | +``` |
36 | 42 |
|
37 | | - beforeEach :: forall e a. Eff e a -> Eff (before :: Before | e) Unit |
38 | 43 |
|
39 | | - describe :: DoDescribe |
| 44 | +#### `DoIt` |
40 | 45 |
|
41 | | - describeOnly :: DoDescribe |
| 46 | +``` purescript |
| 47 | +type DoIt = forall e a. String -> Eff e a -> Eff (it :: It | e) Unit |
| 48 | +``` |
42 | 49 |
|
43 | | - describeSkip :: DoDescribe |
44 | 50 |
|
45 | | - it :: DoIt |
| 51 | +#### `DoDescribe` |
46 | 52 |
|
47 | | - itAsync :: forall a eff. String -> (DoneToken -> Eff (done :: Done | eff) a) -> Eff (it :: It | eff) Unit |
| 53 | +``` purescript |
| 54 | +type DoDescribe = forall e a. String -> Eff (describe :: Describe | e) a -> Eff (describe :: Describe | e) Unit |
| 55 | +``` |
48 | 56 |
|
49 | | - itIs :: forall eff. DoneToken -> Eff (done :: Done | eff) Unit |
50 | 57 |
|
51 | | - itIsNot :: forall eff. DoneToken -> Eff (done :: Done | eff) Unit |
| 58 | +#### `DoBefore` |
52 | 59 |
|
53 | | - itOnly :: DoIt |
| 60 | +``` purescript |
| 61 | +type DoBefore = forall e a. Eff e a -> Eff (before :: Before | e) Unit |
| 62 | +``` |
54 | 63 |
|
55 | | - itSkip :: DoIt |
| 64 | + |
| 65 | +#### `DoAfter` |
| 66 | + |
| 67 | +``` purescript |
| 68 | +type DoAfter = forall e a. Eff e a -> Eff (after :: After | e) Unit |
| 69 | +``` |
| 70 | + |
| 71 | + |
| 72 | +#### `DoneToken` |
| 73 | + |
| 74 | +``` purescript |
| 75 | +data DoneToken |
| 76 | + = DoneToken |
| 77 | +``` |
| 78 | + |
| 79 | + |
| 80 | +#### `describe` |
| 81 | + |
| 82 | +``` purescript |
| 83 | +describe :: DoDescribe |
| 84 | +``` |
| 85 | + |
| 86 | + |
| 87 | +#### `describeOnly` |
| 88 | + |
| 89 | +``` purescript |
| 90 | +describeOnly :: DoDescribe |
| 91 | +``` |
| 92 | + |
| 93 | + |
| 94 | +#### `describeSkip` |
| 95 | + |
| 96 | +``` purescript |
| 97 | +describeSkip :: DoDescribe |
| 98 | +``` |
| 99 | + |
| 100 | + |
| 101 | +#### `it` |
| 102 | + |
| 103 | +``` purescript |
| 104 | +it :: DoIt |
| 105 | +``` |
| 106 | + |
| 107 | + |
| 108 | +#### `itOnly` |
| 109 | + |
| 110 | +``` purescript |
| 111 | +itOnly :: DoIt |
| 112 | +``` |
| 113 | + |
| 114 | + |
| 115 | +#### `itSkip` |
| 116 | + |
| 117 | +``` purescript |
| 118 | +itSkip :: DoIt |
| 119 | +``` |
| 120 | + |
| 121 | + |
| 122 | +#### `itAsync` |
| 123 | + |
| 124 | +``` purescript |
| 125 | +itAsync :: forall a eff. String -> (DoneToken -> Eff (done :: Done | eff) a) -> Eff (it :: It | eff) Unit |
| 126 | +``` |
| 127 | + |
| 128 | + |
| 129 | +#### `itIs` |
| 130 | + |
| 131 | +``` purescript |
| 132 | +itIs :: forall eff. DoneToken -> Eff (done :: Done | eff) Unit |
| 133 | +``` |
| 134 | + |
| 135 | + |
| 136 | +#### `itIsNot` |
| 137 | + |
| 138 | +``` purescript |
| 139 | +itIsNot :: forall eff a. DoneToken -> Eff (done :: Done | eff) Unit |
| 140 | +``` |
| 141 | + |
| 142 | + |
| 143 | +#### `before` |
| 144 | + |
| 145 | +``` purescript |
| 146 | +before :: DoBefore |
| 147 | +``` |
| 148 | + |
| 149 | +Before Hooks |
| 150 | + |
| 151 | +#### `beforeEach` |
| 152 | + |
| 153 | +``` purescript |
| 154 | +beforeEach :: DoBefore |
| 155 | +``` |
| 156 | + |
| 157 | + |
| 158 | +#### `beforeAsync` |
| 159 | + |
| 160 | +``` purescript |
| 161 | +beforeAsync :: forall a eff. (DoneToken -> Eff (done :: Done | eff) a) -> Eff (it :: It | eff) Unit |
| 162 | +``` |
| 163 | + |
| 164 | + |
| 165 | +#### `beforeEachAsync` |
| 166 | + |
| 167 | +``` purescript |
| 168 | +beforeEachAsync :: forall a eff. (DoneToken -> Eff (done :: Done | eff) a) -> Eff (it :: It | eff) Unit |
| 169 | +``` |
| 170 | + |
| 171 | + |
| 172 | +#### `after` |
| 173 | + |
| 174 | +``` purescript |
| 175 | +after :: DoAfter |
| 176 | +``` |
| 177 | + |
| 178 | +After Hooks |
| 179 | + |
| 180 | +#### `afterEach` |
| 181 | + |
| 182 | +``` purescript |
| 183 | +afterEach :: DoAfter |
| 184 | +``` |
| 185 | + |
| 186 | + |
| 187 | +#### `afterAsync` |
| 188 | + |
| 189 | +``` purescript |
| 190 | +afterAsync :: forall a eff. (DoneToken -> Eff (done :: Done | eff) a) -> Eff (it :: It | eff) Unit |
| 191 | +``` |
| 192 | + |
| 193 | + |
| 194 | +#### `afterEachAsync` |
| 195 | + |
| 196 | +``` purescript |
| 197 | +afterEachAsync :: forall a eff. (DoneToken -> Eff (done :: Done | eff) a) -> Eff (it :: It | eff) Unit |
| 198 | +``` |
0 commit comments