Skip to content

Adding Sample#4

Open
navidehsa wants to merge 4 commits into
masterfrom
example
Open

Adding Sample#4
navidehsa wants to merge 4 commits into
masterfrom
example

Conversation

@navidehsa

Copy link
Copy Markdown

Editing Documentation and Adding Sample to projects

@nover nover left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@navidehsa Overall I think it looks good, I have a few comments for improvements.

Comment thread README.md
# hapi-test-utils

This package provides common helpers for testing [hapijs](https://hapijs.com/) code.
This package provides common helpers for testing API(unit test)[hapijs](https://hapijs.com/) code.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's change it to:

This package provides common helpers for unit testing

Comment thread README.md
## Routes

The `routing` namespace currently contains one helper for testing whether routes have been registered. Imagine some code like this
Imagine some code like this.We want to test `/hello` route with hapi-test-utils module

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Missing space after first .

Comment thread README.md
});
```

add `mocha` to run the test.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The given test suite in this example is actually written with jest :)

Comment thread README.md
This package provides common helpers for testing API(unit test)[hapijs](https://hapijs.com/) code.
It is currently compatible with hapi v17 and therefore also only works on nodejs 8.

Install the module as a dev dependency

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's add a comment and link to the examples folder here in the readme! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants