Skip to content
This repository has been archived by the owner on Sep 27, 2021. It is now read-only.

testing docs: fix typos #368

Open
wants to merge 1 commit into
base: 4.1
Choose a base branch
from
Open
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
10 changes: 5 additions & 5 deletions 10-testing/01-Getting-Started.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -152,10 +152,10 @@ For example, we can have a suite of tests for *user registration*:

[source, js]
----
const Suite = use('Test/Suite')('User registeration')
const Suite = use('Test/Suite')('User registration')

// or destructuring
const { test } = use('Test/Suite')('User registeration')
const { test } = use('Test/Suite')('User registration')
----

The `test` function obtained from the `Suite` instance is used to define tests:
Expand All @@ -174,7 +174,7 @@ For example, we call the `Test/Browser` trait so we can test via web browser:

[source, js]
----
const { test, trait } = use('Test/Suite')('User registeration')
const { test, trait } = use('Test/Suite')('User registration')

trait('Test/Browser')

Expand All @@ -189,7 +189,7 @@ You can define custom traits with a closure or IoC container binding:

[source, js]
----
const { test, trait } = use('Test/Suite')('User registeration')
const { test, trait } = use('Test/Suite')('User registration')

trait(function (suite) {
suite.Context.getter('foo', () => {
Expand All @@ -216,7 +216,7 @@ Each suite has lifecycle hooks which can be used to perform repetitive tasks (fo

[source, js]
----
const Suite = use('Test/Suite')('User registeration')
const Suite = use('Test/Suite')('User registration')

const { before, beforeEach, after, afterEach } = Suite

Expand Down