Skip to content

Commit

Permalink
Add links translations for new docs
Browse files Browse the repository at this point in the history
  • Loading branch information
forresst committed Jan 23, 2016
1 parent 68068be commit f05d57c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions code-of-conduct.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Contributor Code of Conduct

Translations: [Espa帽ol](https://github.com/sindresorhus/ava-docs/blob/master/es_ES/code-of-conduct.md), [Fran莽ais](https://github.com/sindresorhus/ava-docs/blob/master/fr_FR/code-of-conduct.md)

As contributors and maintainers of this project, and in the interest of
fostering an open and welcoming community, we pledge to respect all people who
contribute through reporting issues, posting feature requests, updating
Expand Down
2 changes: 2 additions & 0 deletions docs/recipes/code-coverage.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Code coverage

Translations: [Espa帽ol](https://github.com/sindresorhus/ava-docs/blob/master/es_ES/docs/recipes/code-coverage.md), [Fran莽ais](https://github.com/sindresorhus/ava-docs/blob/master/fr_FR/docs/recipes/code-coverage.md)

As AVA [spawns the test files][isolated-env], you can't use [`istanbul`] for code coverage; instead, you can achieve this with [`nyc`] which is basically [`istanbul`] with sub-process support.

## Setup
Expand Down
2 changes: 2 additions & 0 deletions docs/recipes/endpoint-testing.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Endpoint testing

Translations: [Espa帽ol](https://github.com/sindresorhus/ava-docs/blob/master/es_ES/docs/recipes/endpoint-testing.md), [Fran莽ais](endpoint-testing.md)

AVA doesn't have a builtin method for testing endpoints, but you can use any assertion library with it. Let's use [`supertest-as-promised`](https://github.com/WhoopInc/supertest-as-promised).

Since tests run concurrently, it's best to create a fresh server instance for each test, because if we referenced the same instance, it could be mutated between tests. This can be accomplished with a `test.beforeEach` and `t.context`, or with simply a factory function:
Expand Down

0 comments on commit f05d57c

Please sign in to comment.