test: migration from Python to JavaScript

This commit is contained in:
Francis Lachapelle committed 2021-11-09 22:35:05 -05:00
1 parent c860bf4f58
commit 8d294467ef
2 files changed
+9 -4

No files matched your search

+7 -2
View File
@@ -6,10 +6,15 @@ const path = require('path')
const { execSync } = require('child_process')
describe('sogo-tool tests', function() {
let tmpdir
let tmpdir, userdir
beforeAll(function() {
const { homedir } = os.userInfo()
userdir = homedir
})
beforeEach(function() {
tmpdir = mkdtempSync(path.join(os.tmpdir(), 'sogo-'))
tmpdir = mkdtempSync(path.join(homedir, 'sogo-'))
})
afterEach(function() {