fix(desktop): plugin installation

This commit is contained in:
Mo
2022-10-14 09:35:37 -05:00
parent a3a8acdd55
commit dd55c63955
3 changed files with 49 additions and 15 deletions

View File

@@ -4,7 +4,7 @@ import path from 'path'
import {
deleteDir,
ensureDirectoryExists,
extractNestedZip,
extractZip,
FileDoesNotExist,
moveDirContents,
readJSONFile,
@@ -25,7 +25,7 @@ test.afterEach(async () => {
})
test('extracts a zip and unnests the folders by one level', async (t) => {
await extractNestedZip(path.join(dataPath, 'zip-file.zip'), zipFileDestination)
await extractZip(path.join(dataPath, 'zip-file.zip'), zipFileDestination)
t.deepEqual(await fs.readdir(zipFileDestination), ['package.json', 'test-file.txt'])
})