()
| 20 | } |
| 21 | |
| 22 | function clearFileSystem() { |
| 23 | return new Promise((resolve, reject) => { |
| 24 | // TODO: change File into a service and require it here |
| 25 | FileSystem.removeAll() |
| 26 | .then(() => { |
| 27 | resolve(); |
| 28 | }) |
| 29 | .catch(() => { |
| 30 | // eslint-disable-next-line prefer-promise-reject-errors |
| 31 | reject('filesystem-unavailable'); |
| 32 | }); |
| 33 | }); |
| 34 | } |
| 35 | |
| 36 | function authenticateToFirebase() { |
| 37 | return new Promise((resolve, reject) => { |
nothing calls this directly
no outgoing calls
no test coverage detected