From f4b2d196e813cf3549e19703e5a79ebc988fb8ca Mon Sep 17 00:00:00 2001 From: Forresst Date: Mon, 31 Dec 2018 15:14:30 +0100 Subject: [PATCH] Fix links to French translation of docs (#2005) --- docs/01-writing-tests.md | 2 ++ docs/02-execution-context.md | 2 ++ docs/03-assertions.md | 2 ++ docs/04-snapshot-testing.md | 2 ++ docs/05-command-line.md | 2 ++ docs/06-configuration.md | 2 ++ docs/07-test-timeouts.md | 2 ++ docs/08-common-pitfalls.md | 2 +- 8 files changed, 15 insertions(+), 1 deletion(-) diff --git a/docs/01-writing-tests.md b/docs/01-writing-tests.md index ddb9db8df..7c9ae7258 100644 --- a/docs/01-writing-tests.md +++ b/docs/01-writing-tests.md @@ -1,5 +1,7 @@ # Writing tests +Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/01-writing-tests.md) + Tests are run concurrently. You can specify synchronous and asynchronous tests. Tests are considered synchronous unless you return a promise, an [observable](https://github.com/zenparsing/zen-observable), or declare it as a callback test. You must define all tests synchronously. They can't be defined inside `setTimeout`, `setImmediate`, etc. diff --git a/docs/02-execution-context.md b/docs/02-execution-context.md index c545777bc..203cad68c 100644 --- a/docs/02-execution-context.md +++ b/docs/02-execution-context.md @@ -1,5 +1,7 @@ # Execution Context (`t` argument) +Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/02-execution-context.md) + Each test or hook is called with an execution context. By convention it's named `t`. ```js diff --git a/docs/03-assertions.md b/docs/03-assertions.md index ae65a84dc..f61c3e2d8 100644 --- a/docs/03-assertions.md +++ b/docs/03-assertions.md @@ -1,5 +1,7 @@ # Assertions +Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/03-assertions.md) + Assertions are mixed into the [execution object](./02-execution-context.md) provided to each test implementation: ```js diff --git a/docs/04-snapshot-testing.md b/docs/04-snapshot-testing.md index 1270a8d89..8d977993d 100644 --- a/docs/04-snapshot-testing.md +++ b/docs/04-snapshot-testing.md @@ -1,5 +1,7 @@ # Snapshot testing +Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/04-snapshot-testing.md) + AVA supports snapshot testing, [as introduced by Jest](https://facebook.github.io/jest/docs/snapshot-testing.html), through its [Assertions](./03-assertions.md) interface. You can snapshot any value as well as React elements: ```js diff --git a/docs/05-command-line.md b/docs/05-command-line.md index 92ffa1367..5d69b2ffd 100644 --- a/docs/05-command-line.md +++ b/docs/05-command-line.md @@ -1,5 +1,7 @@ # CLI +Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/05-command-line.md) + ```console $ npx ava --help diff --git a/docs/06-configuration.md b/docs/06-configuration.md index 9eac8437f..552742604 100644 --- a/docs/06-configuration.md +++ b/docs/06-configuration.md @@ -1,5 +1,7 @@ # Configuration +Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/06-configuration.md) + All of the [CLI options](./05-command-line.md) can be configured in the `ava` section of either your `package.json` file, or an `ava.config.js` file. This allows you to modify the default behavior of the `ava` command, so you don't have to repeatedly type the same options on the command prompt. To ignore a file or directory, prefix the pattern with an `!` (exclamation mark). diff --git a/docs/07-test-timeouts.md b/docs/07-test-timeouts.md index 01cbb7a22..c0cc1af67 100644 --- a/docs/07-test-timeouts.md +++ b/docs/07-test-timeouts.md @@ -1,5 +1,7 @@ # Test timeouts +Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/07-test-timeouts.md) + Timeouts in AVA behave differently than in other test frameworks. AVA resets a timer after each test, forcing tests to quit if no new test results were received within the specified timeout. This can be used to handle stalled tests. You can configure timeouts using the `--timeout` [command line option](./05-command-line.md), or in the [configuration](./06-configuration.md). diff --git a/docs/08-common-pitfalls.md b/docs/08-common-pitfalls.md index a28f08b39..902c8a2ab 100644 --- a/docs/08-common-pitfalls.md +++ b/docs/08-common-pitfalls.md @@ -1,6 +1,6 @@ # Common Pitfalls -Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/common-pitfalls.md) +Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/docs/08-common-pitfalls.md) ## ESLint plugin