Remove platform-specific test code

pull/212/head
Ethan Dennis 5 years ago
parent bc1250c6eb
commit b862af881e
No known key found for this signature in database
GPG Key ID: 32E74B75DB4065DD

@ -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…
Cancel
Save