Clean up test userData before each test

This commit is contained in:
Yuya Ochiai
2017-10-22 00:34:38 +09:00
parent 3613f70a72
commit 65286a6454
2 changed files with 8 additions and 4 deletions

View File

@@ -39,6 +39,12 @@ module.exports = {
});
},
createTestUserDataDir() {
if (!fs.existsSync(userDataDir)) {
fs.mkdirSync(userDataDir);
}
},
getSpectronApp() {
return new Application({
path: electronBinaryPath,