import cli methods

pull/353/head
Frostebite 2022-04-08 21:36:17 +01:00
parent b225664081
commit ad672df1ef
1 changed files with 3 additions and 1 deletions

View File

@ -52,7 +52,9 @@ describe('Cloud Runner Caching', () => {
await CloudRunnerSystem.Run(`tree ${testFolder}`);
await CloudRunnerSystem.Run(`tree ${cacheFolder}`);
// compare validity to original hash
expect(fs.readFileSync(path.resolve(testFolder, 'test.txt'))).toContain(CLI.options.cacheKey);
expect(fs.readFileSync(path.resolve(testFolder, 'test.txt'), { encoding: 'utf8' }).toString()).toContain(
CLI.options.cacheKey,
);
fs.rmdirSync(testFolder, { recursive: true });
fs.rmdirSync(cacheFolder, { recursive: true });