(filename: string, jsonData: string, onDone: fs.NoParamCallback)
| 360 | }; |
| 361 | |
| 362 | const writeExportedFileToFileSystem = (filename: string, jsonData: string, onDone: fs.NoParamCallback) => { |
| 363 | // Remember last exported path |
| 364 | window.localStorage.setItem('insomnia.lastExportPath', path.dirname(filename)); |
| 365 | fs.writeFile(filename, jsonData, {}, onDone); |
| 366 | }; |
| 367 | |
| 368 | export const exportAllToFile = (activeProjectName: string, workspacesForActiveProject: Workspace[]) => { |
| 369 | if (!workspacesForActiveProject.length) { |
no test coverage detected