Skip to content

Commit

Permalink
Merge pull request #106 from AthennaIO/develop
Browse files Browse the repository at this point in the history
fix(docs): spelling
  • Loading branch information
jlenon7 authored Sep 6, 2023
2 parents 67834ef + ba0e183 commit a0b6606
Showing 1 changed file with 9 additions and 6 deletions.
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

0 comments on commit a0b6606

Please sign in to comment.