Skip to content

Commit

Permalink
chore: upgrade prettier (#7336)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored Nov 19, 2018
1 parent 819cae5 commit 993bc5c
Show file tree
Hide file tree
Showing 57 changed files with 421 additions and 396 deletions.
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
fixtures/failing-jsons/
packages/jest-config/src/__tests__/jest-preset.json
packages/pretty-format/perf/world.geo.json
6 changes: 3 additions & 3 deletions docs/JestObjectAPI.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,9 @@ jest.mock(
'../moduleName',
() => {
/*
* Custom implementation of a module that doesn't exist in JS,
* like a generated module or a native module in react-native.
*/
* Custom implementation of a module that doesn't exist in JS,
* like a generated module or a native module in react-native.
*/
},
{virtual: true},
);
Expand Down
13 changes: 6 additions & 7 deletions docs/TutorialAsync.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,13 +50,12 @@ const users = {
export default function request(url) {
return new Promise((resolve, reject) => {
const userID = parseInt(url.substr('/users/'.length), 10);
process.nextTick(
() =>
users[userID]
? resolve(users[userID])
: reject({
error: 'User with ' + userID + ' not found.',
}),
process.nextTick(() =>
users[userID]
? resolve(users[userID])
: reject({
error: 'User with ' + userID + ' not found.',
}),
);
});
}
Expand Down
Loading

0 comments on commit 993bc5c

Please sign in to comment.