Skip to content

Commit

Permalink
docs(require-throws): avoid copy-paste naming errors
Browse files Browse the repository at this point in the history
  • Loading branch information
brettz9 committed Jul 1, 2020
1 parent e5387f1 commit ef35f91
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13214,7 +13214,7 @@ function quux () {
/**
*
*/
const itself = (b) => {
const directThrowAfterArrow = (b) => {
const a = () => {};
if (b) {
throw new Error('oops')
Expand Down Expand Up @@ -13279,7 +13279,7 @@ const itself = (n) => n;
/**
* Not tracking on nested function
*/
const itself = () => () => {throw new Error('oops');};
const nested = () => () => {throw new Error('oops');};
````
Expand Down
4 changes: 2 additions & 2 deletions test/rules/assertions/requireThrows.js
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ export default {
/**
*
*/
const itself = (b) => {
const directThrowAfterArrow = (b) => {
const a = () => {};
if (b) {
throw new Error('oops')
Expand Down Expand Up @@ -395,7 +395,7 @@ export default {
/**
* Not tracking on nested function
*/
const itself = () => () => {throw new Error('oops');};
const nested = () => () => {throw new Error('oops');};
`,
},
],
Expand Down

0 comments on commit ef35f91

Please sign in to comment.