|
1 | 1 | // Jest Snapshot v1, https://goo.gl/fbAQLP
|
2 | 2 |
|
| 3 | +exports[`bufferDtoToFormData should return form data 1`] = ` |
| 4 | +FormData { |
| 5 | + "_checkDataSize": [MockFunction], |
| 6 | + "_emitError": [MockFunction], |
| 7 | + "_error": [MockFunction], |
| 8 | + "_generateBoundary": [MockFunction], |
| 9 | + "_getContentDisposition": [MockFunction], |
| 10 | + "_getContentType": [MockFunction], |
| 11 | + "_getNext": [MockFunction], |
| 12 | + "_handleErrors": [MockFunction], |
| 13 | + "_lastBoundary": [MockFunction], |
| 14 | + "_lengthRetriever": [MockFunction], |
| 15 | + "_multiPartFooter": [MockFunction], |
| 16 | + "_multiPartHeader": [MockFunction], |
| 17 | + "_pipeNext": [MockFunction], |
| 18 | + "_realGetNext": [MockFunction], |
| 19 | + "_reset": [MockFunction], |
| 20 | + "_trackLength": [MockFunction], |
| 21 | + "_updateDataSize": [MockFunction], |
| 22 | + "addListener": [MockFunction], |
| 23 | + "append": [MockFunction] { |
| 24 | + "calls": Array [ |
| 25 | + Array [ |
| 26 | + "buildId", |
| 27 | + "buildId", |
| 28 | + ], |
| 29 | + Array [ |
| 30 | + "projectId", |
| 31 | + "projectId", |
| 32 | + ], |
| 33 | + Array [ |
| 34 | + "branchName", |
| 35 | + "develop", |
| 36 | + ], |
| 37 | + Array [ |
| 38 | + "name", |
| 39 | + "name", |
| 40 | + ], |
| 41 | + Array [ |
| 42 | + "image", |
| 43 | + Object { |
| 44 | + "data": Array [ |
| 45 | + 1, |
| 46 | + 2, |
| 47 | + 3, |
| 48 | + ], |
| 49 | + "type": "Buffer", |
| 50 | + }, |
| 51 | + Object { |
| 52 | + "filename": "image.png", |
| 53 | + }, |
| 54 | + ], |
| 55 | + Array [ |
| 56 | + "os", |
| 57 | + "os", |
| 58 | + ], |
| 59 | + Array [ |
| 60 | + "browser", |
| 61 | + "browser", |
| 62 | + ], |
| 63 | + Array [ |
| 64 | + "viewport", |
| 65 | + "viewport", |
| 66 | + ], |
| 67 | + Array [ |
| 68 | + "device", |
| 69 | + "device", |
| 70 | + ], |
| 71 | + Array [ |
| 72 | + "ignoreAreas", |
| 73 | + "[{\\"x\\":1,\\"y\\":2,\\"height\\":300,\\"width\\":400}]", |
| 74 | + ], |
| 75 | + Array [ |
| 76 | + "diffTollerancePercent", |
| 77 | + 0.123, |
| 78 | + ], |
| 79 | + ], |
| 80 | + "results": Array [ |
| 81 | + Object { |
| 82 | + "type": "return", |
| 83 | + "value": undefined, |
| 84 | + }, |
| 85 | + Object { |
| 86 | + "type": "return", |
| 87 | + "value": undefined, |
| 88 | + }, |
| 89 | + Object { |
| 90 | + "type": "return", |
| 91 | + "value": undefined, |
| 92 | + }, |
| 93 | + Object { |
| 94 | + "type": "return", |
| 95 | + "value": undefined, |
| 96 | + }, |
| 97 | + Object { |
| 98 | + "type": "return", |
| 99 | + "value": undefined, |
| 100 | + }, |
| 101 | + Object { |
| 102 | + "type": "return", |
| 103 | + "value": undefined, |
| 104 | + }, |
| 105 | + Object { |
| 106 | + "type": "return", |
| 107 | + "value": undefined, |
| 108 | + }, |
| 109 | + Object { |
| 110 | + "type": "return", |
| 111 | + "value": undefined, |
| 112 | + }, |
| 113 | + Object { |
| 114 | + "type": "return", |
| 115 | + "value": undefined, |
| 116 | + }, |
| 117 | + Object { |
| 118 | + "type": "return", |
| 119 | + "value": undefined, |
| 120 | + }, |
| 121 | + Object { |
| 122 | + "type": "return", |
| 123 | + "value": undefined, |
| 124 | + }, |
| 125 | + ], |
| 126 | + }, |
| 127 | + "destroy": [MockFunction], |
| 128 | + "emit": [MockFunction], |
| 129 | + "end": [MockFunction], |
| 130 | + "eventNames": [MockFunction], |
| 131 | + "getBoundary": [MockFunction], |
| 132 | + "getBuffer": [MockFunction], |
| 133 | + "getHeaders": [MockFunction], |
| 134 | + "getLength": [MockFunction], |
| 135 | + "getLengthSync": [MockFunction], |
| 136 | + "getMaxListeners": [MockFunction], |
| 137 | + "hasKnownLength": [MockFunction], |
| 138 | + "listenerCount": [MockFunction], |
| 139 | + "listeners": [MockFunction], |
| 140 | + "once": [MockFunction], |
| 141 | + "pause": [MockFunction], |
| 142 | + "pipe": [MockFunction], |
| 143 | + "prependListener": [MockFunction], |
| 144 | + "prependOnceListener": [MockFunction], |
| 145 | + "rawListeners": [MockFunction], |
| 146 | + "removeAllListeners": [MockFunction], |
| 147 | + "removeListener": [MockFunction], |
| 148 | + "resume": [MockFunction], |
| 149 | + "setBoundary": [MockFunction], |
| 150 | + "setMaxListeners": [MockFunction], |
| 151 | + "submit": [MockFunction], |
| 152 | + "toString": [MockFunction], |
| 153 | + "write": [MockFunction], |
| 154 | +} |
| 155 | +`; |
| 156 | + |
| 157 | +exports[`bufferDtoToFormData should return form data 2`] = ` |
| 158 | +FormData { |
| 159 | + "_checkDataSize": [MockFunction], |
| 160 | + "_emitError": [MockFunction], |
| 161 | + "_error": [MockFunction], |
| 162 | + "_generateBoundary": [MockFunction], |
| 163 | + "_getContentDisposition": [MockFunction], |
| 164 | + "_getContentType": [MockFunction], |
| 165 | + "_getNext": [MockFunction], |
| 166 | + "_handleErrors": [MockFunction], |
| 167 | + "_lastBoundary": [MockFunction], |
| 168 | + "_lengthRetriever": [MockFunction], |
| 169 | + "_multiPartFooter": [MockFunction], |
| 170 | + "_multiPartHeader": [MockFunction], |
| 171 | + "_pipeNext": [MockFunction], |
| 172 | + "_realGetNext": [MockFunction], |
| 173 | + "_reset": [MockFunction], |
| 174 | + "_trackLength": [MockFunction], |
| 175 | + "_updateDataSize": [MockFunction], |
| 176 | + "addListener": [MockFunction], |
| 177 | + "append": [MockFunction] { |
| 178 | + "calls": Array [ |
| 179 | + Array [ |
| 180 | + "buildId", |
| 181 | + "buildId", |
| 182 | + ], |
| 183 | + Array [ |
| 184 | + "projectId", |
| 185 | + "projectId", |
| 186 | + ], |
| 187 | + Array [ |
| 188 | + "branchName", |
| 189 | + "develop", |
| 190 | + ], |
| 191 | + Array [ |
| 192 | + "name", |
| 193 | + "name", |
| 194 | + ], |
| 195 | + Array [ |
| 196 | + "image", |
| 197 | + Object { |
| 198 | + "data": Array [ |
| 199 | + 1, |
| 200 | + 2, |
| 201 | + 3, |
| 202 | + ], |
| 203 | + "type": "Buffer", |
| 204 | + }, |
| 205 | + Object { |
| 206 | + "filename": "image.png", |
| 207 | + }, |
| 208 | + ], |
| 209 | + ], |
| 210 | + "results": Array [ |
| 211 | + Object { |
| 212 | + "type": "return", |
| 213 | + "value": undefined, |
| 214 | + }, |
| 215 | + Object { |
| 216 | + "type": "return", |
| 217 | + "value": undefined, |
| 218 | + }, |
| 219 | + Object { |
| 220 | + "type": "return", |
| 221 | + "value": undefined, |
| 222 | + }, |
| 223 | + Object { |
| 224 | + "type": "return", |
| 225 | + "value": undefined, |
| 226 | + }, |
| 227 | + Object { |
| 228 | + "type": "return", |
| 229 | + "value": undefined, |
| 230 | + }, |
| 231 | + ], |
| 232 | + }, |
| 233 | + "destroy": [MockFunction], |
| 234 | + "emit": [MockFunction], |
| 235 | + "end": [MockFunction], |
| 236 | + "eventNames": [MockFunction], |
| 237 | + "getBoundary": [MockFunction], |
| 238 | + "getBuffer": [MockFunction], |
| 239 | + "getHeaders": [MockFunction], |
| 240 | + "getLength": [MockFunction], |
| 241 | + "getLengthSync": [MockFunction], |
| 242 | + "getMaxListeners": [MockFunction], |
| 243 | + "hasKnownLength": [MockFunction], |
| 244 | + "listenerCount": [MockFunction], |
| 245 | + "listeners": [MockFunction], |
| 246 | + "once": [MockFunction], |
| 247 | + "pause": [MockFunction], |
| 248 | + "pipe": [MockFunction], |
| 249 | + "prependListener": [MockFunction], |
| 250 | + "prependOnceListener": [MockFunction], |
| 251 | + "rawListeners": [MockFunction], |
| 252 | + "removeAllListeners": [MockFunction], |
| 253 | + "removeListener": [MockFunction], |
| 254 | + "resume": [MockFunction], |
| 255 | + "setBoundary": [MockFunction], |
| 256 | + "setMaxListeners": [MockFunction], |
| 257 | + "submit": [MockFunction], |
| 258 | + "toString": [MockFunction], |
| 259 | + "write": [MockFunction], |
| 260 | +} |
| 261 | +`; |
| 262 | + |
3 | 263 | exports[`multipartDtoToFormData should return form data 1`] = `
|
4 | 264 | FormData {
|
5 | 265 | "_checkDataSize": [MockFunction],
|
|
0 commit comments