|
| 1 | +# Snapshot report for `test/no-await-in-promise-methods.mjs` |
| 2 | + |
| 3 | +The actual snapshot is saved in `no-await-in-promise-methods.mjs.snap`. |
| 4 | + |
| 5 | +Generated by [AVA](https://avajs.dev). |
| 6 | + |
| 7 | +## invalid(1): Promise.all([await promise]) |
| 8 | + |
| 9 | +> Input |
| 10 | +
|
| 11 | + `␊ |
| 12 | + 1 | Promise.all([await promise])␊ |
| 13 | + ` |
| 14 | + |
| 15 | +> Error 1/1 |
| 16 | +
|
| 17 | + `␊ |
| 18 | + > 1 | Promise.all([await promise])␊ |
| 19 | + | ^^^^^^^^^^^^^ Promise in \`Promise.all()\` should not be awaited.␊ |
| 20 | + ␊ |
| 21 | + --------------------------------------------------------------------------------␊ |
| 22 | + Suggestion 1/1: Remove \`await\`.␊ |
| 23 | + 1 | Promise.all([promise])␊ |
| 24 | + ` |
| 25 | + |
| 26 | +## invalid(2): Promise.allSettled([await promise]) |
| 27 | + |
| 28 | +> Input |
| 29 | +
|
| 30 | + `␊ |
| 31 | + 1 | Promise.allSettled([await promise])␊ |
| 32 | + ` |
| 33 | + |
| 34 | +> Error 1/1 |
| 35 | +
|
| 36 | + `␊ |
| 37 | + > 1 | Promise.allSettled([await promise])␊ |
| 38 | + | ^^^^^^^^^^^^^ Promise in \`Promise.allSettled()\` should not be awaited.␊ |
| 39 | + ␊ |
| 40 | + --------------------------------------------------------------------------------␊ |
| 41 | + Suggestion 1/1: Remove \`await\`.␊ |
| 42 | + 1 | Promise.allSettled([promise])␊ |
| 43 | + ` |
| 44 | + |
| 45 | +## invalid(3): Promise.any([await promise]) |
| 46 | + |
| 47 | +> Input |
| 48 | +
|
| 49 | + `␊ |
| 50 | + 1 | Promise.any([await promise])␊ |
| 51 | + ` |
| 52 | + |
| 53 | +> Error 1/1 |
| 54 | +
|
| 55 | + `␊ |
| 56 | + > 1 | Promise.any([await promise])␊ |
| 57 | + | ^^^^^^^^^^^^^ Promise in \`Promise.any()\` should not be awaited.␊ |
| 58 | + ␊ |
| 59 | + --------------------------------------------------------------------------------␊ |
| 60 | + Suggestion 1/1: Remove \`await\`.␊ |
| 61 | + 1 | Promise.any([promise])␊ |
| 62 | + ` |
| 63 | + |
| 64 | +## invalid(4): Promise.race([await promise]) |
| 65 | + |
| 66 | +> Input |
| 67 | +
|
| 68 | + `␊ |
| 69 | + 1 | Promise.race([await promise])␊ |
| 70 | + ` |
| 71 | + |
| 72 | +> Error 1/1 |
| 73 | +
|
| 74 | + `␊ |
| 75 | + > 1 | Promise.race([await promise])␊ |
| 76 | + | ^^^^^^^^^^^^^ Promise in \`Promise.race()\` should not be awaited.␊ |
| 77 | + ␊ |
| 78 | + --------------------------------------------------------------------------------␊ |
| 79 | + Suggestion 1/1: Remove \`await\`.␊ |
| 80 | + 1 | Promise.race([promise])␊ |
| 81 | + ` |
| 82 | + |
| 83 | +## invalid(5): Promise.all([, await promise]) |
| 84 | + |
| 85 | +> Input |
| 86 | +
|
| 87 | + `␊ |
| 88 | + 1 | Promise.all([, await promise])␊ |
| 89 | + ` |
| 90 | + |
| 91 | +> Error 1/1 |
| 92 | +
|
| 93 | + `␊ |
| 94 | + > 1 | Promise.all([, await promise])␊ |
| 95 | + | ^^^^^^^^^^^^^ Promise in \`Promise.all()\` should not be awaited.␊ |
| 96 | + ␊ |
| 97 | + --------------------------------------------------------------------------------␊ |
| 98 | + Suggestion 1/1: Remove \`await\`.␊ |
| 99 | + 1 | Promise.all([, promise])␊ |
| 100 | + ` |
| 101 | + |
| 102 | +## invalid(6): Promise.all([await promise,]) |
| 103 | + |
| 104 | +> Input |
| 105 | +
|
| 106 | + `␊ |
| 107 | + 1 | Promise.all([await promise,])␊ |
| 108 | + ` |
| 109 | + |
| 110 | +> Error 1/1 |
| 111 | +
|
| 112 | + `␊ |
| 113 | + > 1 | Promise.all([await promise,])␊ |
| 114 | + | ^^^^^^^^^^^^^ Promise in \`Promise.all()\` should not be awaited.␊ |
| 115 | + ␊ |
| 116 | + --------------------------------------------------------------------------------␊ |
| 117 | + Suggestion 1/1: Remove \`await\`.␊ |
| 118 | + 1 | Promise.all([promise,])␊ |
| 119 | + ` |
| 120 | + |
| 121 | +## invalid(7): Promise.all([await promise],) |
| 122 | + |
| 123 | +> Input |
| 124 | +
|
| 125 | + `␊ |
| 126 | + 1 | Promise.all([await promise],)␊ |
| 127 | + ` |
| 128 | + |
| 129 | +> Error 1/1 |
| 130 | +
|
| 131 | + `␊ |
| 132 | + > 1 | Promise.all([await promise],)␊ |
| 133 | + | ^^^^^^^^^^^^^ Promise in \`Promise.all()\` should not be awaited.␊ |
| 134 | + ␊ |
| 135 | + --------------------------------------------------------------------------------␊ |
| 136 | + Suggestion 1/1: Remove \`await\`.␊ |
| 137 | + 1 | Promise.all([promise],)␊ |
| 138 | + ` |
| 139 | + |
| 140 | +## invalid(8): Promise.all([await (0, promise)],) |
| 141 | + |
| 142 | +> Input |
| 143 | +
|
| 144 | + `␊ |
| 145 | + 1 | Promise.all([await (0, promise)],)␊ |
| 146 | + ` |
| 147 | + |
| 148 | +> Error 1/1 |
| 149 | +
|
| 150 | + `␊ |
| 151 | + > 1 | Promise.all([await (0, promise)],)␊ |
| 152 | + | ^^^^^^^^^^^^^^^^^^ Promise in \`Promise.all()\` should not be awaited.␊ |
| 153 | + ␊ |
| 154 | + --------------------------------------------------------------------------------␊ |
| 155 | + Suggestion 1/1: Remove \`await\`.␊ |
| 156 | + 1 | Promise.all([(0, promise)],)␊ |
| 157 | + ` |
| 158 | + |
| 159 | +## invalid(9): Promise.all([await (( promise ))]) |
| 160 | + |
| 161 | +> Input |
| 162 | +
|
| 163 | + `␊ |
| 164 | + 1 | Promise.all([await (( promise ))])␊ |
| 165 | + ` |
| 166 | + |
| 167 | +> Error 1/1 |
| 168 | +
|
| 169 | + `␊ |
| 170 | + > 1 | Promise.all([await (( promise ))])␊ |
| 171 | + | ^^^^^^^^^^^^^^^^^^^ Promise in \`Promise.all()\` should not be awaited.␊ |
| 172 | + ␊ |
| 173 | + --------------------------------------------------------------------------------␊ |
| 174 | + Suggestion 1/1: Remove \`await\`.␊ |
| 175 | + 1 | Promise.all([(( promise ))])␊ |
| 176 | + ` |
| 177 | + |
| 178 | +## invalid(10): Promise.all([await await promise]) |
| 179 | + |
| 180 | +> Input |
| 181 | +
|
| 182 | + `␊ |
| 183 | + 1 | Promise.all([await await promise])␊ |
| 184 | + ` |
| 185 | + |
| 186 | +> Error 1/1 |
| 187 | +
|
| 188 | + `␊ |
| 189 | + > 1 | Promise.all([await await promise])␊ |
| 190 | + | ^^^^^^^^^^^^^^^^^^^ Promise in \`Promise.all()\` should not be awaited.␊ |
| 191 | + ␊ |
| 192 | + --------------------------------------------------------------------------------␊ |
| 193 | + Suggestion 1/1: Remove \`await\`.␊ |
| 194 | + 1 | Promise.all([await promise])␊ |
| 195 | + ` |
| 196 | + |
| 197 | +## invalid(11): Promise.all([...foo, await promise1, await promise2]) |
| 198 | + |
| 199 | +> Input |
| 200 | +
|
| 201 | + `␊ |
| 202 | + 1 | Promise.all([...foo, await promise1, await promise2])␊ |
| 203 | + ` |
| 204 | + |
| 205 | +> Error 1/2 |
| 206 | +
|
| 207 | + `␊ |
| 208 | + > 1 | Promise.all([...foo, await promise1, await promise2])␊ |
| 209 | + | ^^^^^^^^^^^^^^ Promise in \`Promise.all()\` should not be awaited.␊ |
| 210 | + ␊ |
| 211 | + --------------------------------------------------------------------------------␊ |
| 212 | + Suggestion 1/1: Remove \`await\`.␊ |
| 213 | + 1 | Promise.all([...foo, promise1, await promise2])␊ |
| 214 | + ` |
| 215 | + |
| 216 | +> Error 2/2 |
| 217 | +
|
| 218 | + `␊ |
| 219 | + > 1 | Promise.all([...foo, await promise1, await promise2])␊ |
| 220 | + | ^^^^^^^^^^^^^^ Promise in \`Promise.all()\` should not be awaited.␊ |
| 221 | + ␊ |
| 222 | + --------------------------------------------------------------------------------␊ |
| 223 | + Suggestion 1/1: Remove \`await\`.␊ |
| 224 | + 1 | Promise.all([...foo, await promise1, promise2])␊ |
| 225 | + ` |
| 226 | + |
| 227 | +## invalid(12): Promise.all([await /* comment*/ promise]) |
| 228 | + |
| 229 | +> Input |
| 230 | +
|
| 231 | + `␊ |
| 232 | + 1 | Promise.all([await /* comment*/ promise])␊ |
| 233 | + ` |
| 234 | + |
| 235 | +> Error 1/1 |
| 236 | +
|
| 237 | + `␊ |
| 238 | + > 1 | Promise.all([await /* comment*/ promise])␊ |
| 239 | + | ^^^^^^^^^^^^^^^^^^^^^^^^^^ Promise in \`Promise.all()\` should not be awaited.␊ |
| 240 | + ␊ |
| 241 | + --------------------------------------------------------------------------------␊ |
| 242 | + Suggestion 1/1: Remove \`await\`.␊ |
| 243 | + 1 | Promise.all([/* comment*/ promise])␊ |
| 244 | + ` |
0 commit comments