Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jfmengels committed Aug 7, 2016
1 parent d04fb81 commit 7756210
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions docs/rules/no-nested-tests.md
Expand Up @@ -2,7 +2,7 @@

Translations: [Français](https://github.com/avajs/ava-docs/blob/master/fr_FR/related/eslint-plugin-ava/docs/rules/no-nested-tests.md)

In AVA, you can not nest tests, i.e. create tests inside of other tests. Doing so will lead to odd behavior.
In AVA, you cannot nest tests, for example, create tests inside of other tests. Doing so will lead to odd behavior.


## Fail
Expand All @@ -12,10 +12,10 @@ import test from 'ava';

test('foo', t => {
const result = foo();
t.true(result.foo === 'foo');
t.true(result.foo);

test('bar', t => {
t.true(result.bar === 'bar');
t.true(result.bar);
});
});
```
Expand All @@ -28,11 +28,11 @@ import test from 'ava';

test('foo', t => {
const result = foo();
t.true(result.foo === 'foo');
t.true(result.foo);
});

test('bar', t => {
const result = foo();
t.true(result.bar === 'bar');
t.true(result.bar);
});
```

0 comments on commit 7756210

Please sign in to comment.