From b862af881ec84a36ca38761cadf49407006c19fc Mon Sep 17 00:00:00 2001 From: Ethan Dennis Date: Wed, 18 Mar 2020 18:05:06 -0700 Subject: [PATCH] Remove platform-specific test code --- __tests__/actionUtils.test.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/__tests__/actionUtils.test.ts b/__tests__/actionUtils.test.ts index fe13c78..ea33ef2 100644 --- a/__tests__/actionUtils.test.ts +++ b/__tests__/actionUtils.test.ts @@ -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); });