Skip to content

Commit

Permalink
Fix code formatting (#5238)
Browse files Browse the repository at this point in the history
* Fix code formatting

* Update CHANGELOG.md
  • Loading branch information
daphtdazz authored and cpojer committed Jan 5, 2018
1 parent d8ffd68 commit 586064d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 12 deletions.
5 changes: 2 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,9 +26,8 @@

### Chore & Maintenance

* `[docs]` Describe the order of execution of describe and test blocks, and a
note on using `test.concurrent`.
([#5217](https://github.com/facebook/jest/pull/5217))
* `[docs]` Describe the order of execution of describe and test blocks.
([#5217](https://github.com/facebook/jest/pull/5217), [#5238](https://github.com/facebook/jest/pull/5238))

## jest 22.0.4

Expand Down
18 changes: 9 additions & 9 deletions docs/SetupAndTeardown.md
Original file line number Diff line number Diff line change
Expand Up @@ -153,35 +153,35 @@ Jest executes all describe handlers in a test file *before* it executes any of t

Consider the following illustrative test file and output:

```
```js
describe('outer', () => {

console.log(`describe outer-a`);
console.log('describe outer-a');

describe('describe inner 1', () => {
console.log(`describe inner 1`);
console.log('describe inner 1');
test('test 1', () => {
console.log(`test for describe inner 1`);
console.log('test for describe inner 1');
expect(true).toEqual(true);
});
});

console.log(`describe outer-b`);
console.log('describe outer-b');

test('test 1', () => {
console.log(`test for describe outer`);
console.log('test for describe outer');
expect(true).toEqual(true);
});

describe('describe inner 2', () => {
console.log(`describe inner 2`);
console.log('describe inner 2');
test('test for describe inner 2', () => {
console.log(`test for describe inner 2`);
console.log('test for describe inner 2');
expect(false).toEqual(false);
})
});

console.log(`describe outer-c`);
console.log('describe outer-c');
});

// describe outer-a
Expand Down

0 comments on commit 586064d

Please sign in to comment.