Skip to content

Commit a2e2a1a

Browse files
authored
Merge pull request #281 from chakrakan/docs/unit-test
Update unit-test.md
2 parents c643a2a + 0a0fe8c commit a2e2a1a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/patterns/unit-test.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ head:
1616

1717
# Unit Test
1818

19-
Being WinterCG compliance, we can use Request / Response class to test an Elysia server.
19+
Being WinterCG compliant, we can use Request / Response classes to test an Elysia server.
2020

21-
Elysia provides **Elysia.handle** which accepts Web Standard [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request), and returns [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) to simulates HTTP Request.
21+
Elysia provides the **Elysia.handle** method, which accepts a Web Standard [Request](https://developer.mozilla.org/en-US/docs/Web/API/Request) and returns [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response), simulating an HTTP Request.
2222

23-
We can use [Bun test](https://bun.sh/guides/test/watch-mode) to create Unit Test.
23+
Bun includes a built-in [test runner](https://bun.sh/docs/cli/test) that offers a Jest-like API through the `bun:test` module, facilitating the creation of unit tests.
2424

2525
Create **test/index.test.ts** in the root of project directory with the following:
2626

0 commit comments

Comments
 (0)