()
| 16 | description: 'when native `entries` is not available', |
| 17 | |
| 18 | beforeEach() { |
| 19 | nativeEntries = FormData.prototype.entries; |
| 20 | nativeDelete = FormData.prototype.delete; |
| 21 | // Remove native entries from the prototype in case the browser running |
| 22 | // the tests already have it to force the "no native `entries`" |
| 23 | // scenario. |
| 24 | FormData.prototype.entries = undefined; |
| 25 | FormData.prototype.delete = undefined; |
| 26 | }, |
| 27 | |
| 28 | afterEach() { |
| 29 | FormData.prototype.entries = nativeEntries; |
no outgoing calls
no test coverage detected