Skip to content

Commit

Permalink
Update error message in the unit test to reflect code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo committed Jan 30, 2019
1 parent bdab122 commit 31a46bf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ function example( number ) {
return number + foo;
}`,
errors: [ { message: 'Declared variable `foo` is unused before a return path' } ],
errors: [ { message: 'Variables should not be assigned until just prior its first reference. An early return statement may leave this variable unused.' } ],
},
],
} );

0 comments on commit 31a46bf

Please sign in to comment.