import cli methods

pull/353/head
Frostebite 2022-04-08 20:32:19 +01:00
parent 4b948a6cbf
commit 4f9302305a
1 changed files with 2 additions and 2 deletions

View File

@ -40,13 +40,13 @@ describe('Cloud Runner Caching', () => {
fs.mkdirSync(cacheFolder);
// add test has file to test folders
fs.writeFileSync(path.resolve(testFolder, 'test.txt'), CLI.options.cacheKey);
await Caching.PushToCache(cacheFolder, testFolder, `${CLI.options.cacheKey}.zip`);
await Caching.PushToCache(cacheFolder, testFolder, `${CLI.options.cacheKey}`);
// delete test folder
fs.rmdirSync(testFolder, { recursive: true });
await Caching.PullFromCache(
cacheFolder.replace(/\\/g, `/`),
testFolder.replace(/\\/g, `/`),
`${CLI.options.cacheKey}.zip`,
`${CLI.options.cacheKey}`,
);
await CloudRunnerSystem.Run(`ls ${__dirname}`);
await CloudRunnerSystem.Run(`ls ${testFolder}`);