Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 294c04b

Browse files
committed
fixup: remove extra checks at end of terminal test
1 parent 82f0511 commit 294c04b

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

‎test/e2e/terminal.test.ts‎

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -56,22 +56,5 @@ test.describe("Integrated Terminal", () => {
5656

5757
const { stdout } = await output
5858
expect(stdout).toMatch(testString)
59-
60-
// .access checks if the file exists without opening it
61-
// it doesn't return anything hence why we expect it to
62-
// resolve to undefined
63-
// If the promise rejects (i.e. the file doesn't exist)
64-
// then the assertion will fail
65-
await expect(fs.promises.access(tmpFile)).resolves.toBeUndefined()
66-
67-
await fs.promises.rmdir(tmpFolderPath, { recursive: true })
68-
// Make sure neither file nor folder exist
69-
// Note: We have to use ts-ignore because of an upstream typing error
70-
// See: https://github.com/microsoft/folio/issues/230#event-4621948411
71-
/* eslint-disable @typescript-eslint/ban-ts-comment */
72-
// @ts-ignore
73-
expect(fs.promises.access(tmpFile)).rejects.toThrowError(/nosuchfileordirectory/)
74-
// @ts-ignore
75-
expect(fs.promises.access(tmpFolderPath)).rejects.toThrowError(/nosuchfileordirectory/)
7659
})
7760
})

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /