mirror of
https://code.forgejo.org/actions/cache.git
synced 2025-04-19 19: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 expect(fs.stat(testFile)).rejects.toThrow(
|
||||
`ENOENT: no such file or directory, stat '${testFile}'`
|
||||
);
|
||||
// This should throw as testFile should not exist
|
||||
await expect(fs.stat(testFile)).rejects.toThrow();
|
||||
|
||||
await fs.rmdir(testDirectory);
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue