How to use the openSync function from temp
Find comprehensive JavaScript temp.openSync code examples handpicked from public code repositorys.
GitHub: Pansero87/Atom
313 314 315 316 317 318 319 320 321
}); }); describe('when an editor is saved and the project has no path', () => { it("sets the project's path to the saved file's parent directory", () => { const tempFile = temp.openSync().path; atom.project.setPaths([]); expect(atom.project.getPaths()[0]).toBeUndefined(); let editor = null;
0
0
1
temp.mkdirSync is the most popular function in temp (129 examples)