Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(docs): spelling #106

Merged
merged 1 commit into from
Sep 6, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 9 additions & 6 deletions docs/testing/getting-started.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ helper methods that allow you to expressively test
your applications.

By default, your application's `tests` directory
contains four directories:
contains two directories:

- `e2e` - Should contains the tests responsible to test
a larger portion of your code, including how several
Expand All @@ -30,8 +30,8 @@ your Athenna application, meaning that they should be unable
to access your application's database or other framework
services.

An `e2e/AppControllerTest.ts` and
`unit/AppServiceTest.ts` files is provided for you
The `e2e/AppControllerTest.ts` and
`unit/AppServiceTest.ts` files are provided for you
to use as an example to start writing your own tests. After
installing a new Athenna application, execute the following
to run your tests:
Expand Down Expand Up @@ -106,7 +106,7 @@ command.

:::

Oce the test has been generated, you may define your
Once the test has been generated, you may define your
test methods and annotate them with the `@Test()` annotation:

```typescript
Expand Down Expand Up @@ -423,7 +423,7 @@ public async test({ assert }: Context) {

#### `@TestCase()`

Define the dataset for the test case. You test will be
Define the dataset for the test case. Your test will be
invoked for each test case defined:

```typescript
Expand All @@ -450,7 +450,10 @@ import { Test, TestCase } from '@athenna/test'
@TestCase('[email protected]')
public async test({ test, assert }: Context, email: string) {
assert.isTrue(email.includes('@athenna.io'))
assert.deepEqual(test.dataset, ['[email protected]', '[email protected]'])
assert.deepEqual(test.dataset, [
'[email protected]',
'[email protected]'
])
}
```

Expand Down
Loading