mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-20 03:46:17 +02:00
Remove platform-specific test code
This commit is contained in:
parent
bc1250c6eb
commit
b862af881e
1 changed files with 2 additions and 3 deletions
|
@ -350,9 +350,8 @@ test("unlinkFile unlinks file", async () => {
|
||||||
|
|
||||||
await actionUtils.unlinkFile(testFile);
|
await actionUtils.unlinkFile(testFile);
|
||||||
|
|
||||||
await expect(fs.stat(testFile)).rejects.toThrow(
|
// This should throw as testFile should not exist
|
||||||
`ENOENT: no such file or directory, stat '${testFile}'`
|
await expect(fs.stat(testFile)).rejects.toThrow();
|
||||||
);
|
|
||||||
|
|
||||||
await fs.rmdir(testDirectory);
|
await fs.rmdir(testDirectory);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue