Skip to content

Commit

Permalink
chore: clean up istanbul ignores (#397)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 15, 2019
1 parent 1b94f0e commit 189b5e7
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/rules/no-test-callback.ts
Expand Up @@ -37,7 +37,7 @@ export default createRule({
fix(fixer) {
const { body } = callback;

/* istanbul ignore if */
/* istanbul ignore if https://github.com/typescript-eslint/typescript-eslint/issues/734 */
if (!body) {
throw new Error(
`Unexpected null when attempting to fix ${context.getFilename()} - please file a github issue at https://github.com/jest-community/eslint-plugin-jest`,
Expand Down
2 changes: 1 addition & 1 deletion src/rules/prefer-to-have-length.ts
Expand Up @@ -58,7 +58,7 @@ export default createRule({
token => token.value === '.',
);

/* istanbul ignore next */
/* istanbul ignore if */
if (propertyDot === null) {
throw new Error(
`Unexpected null when attempting to fix ${context.getFilename()} - please file a github issue at https://github.com/jest-community/eslint-plugin-jest`,
Expand Down
2 changes: 1 addition & 1 deletion src/rules/prefer-todo.ts
Expand Up @@ -16,7 +16,7 @@ import {
} from './tsUtils';

function isFunctionBodyEmpty(node: FunctionExpression) {
/* istanbul ignore next https://github.com/typescript-eslint/typescript-eslint/issues/734 */
/* istanbul ignore if https://github.com/typescript-eslint/typescript-eslint/issues/734 */
if (!node.body) {
throw new Error(
`Unexpected null while performing prefer-todo - please file a github issue at https://github.com/jest-community/eslint-plugin-jest`,
Expand Down
1 change: 0 additions & 1 deletion src/rules/tsUtils.ts
Expand Up @@ -225,7 +225,6 @@ export const isSupportedAccessor = <V extends string>(
export const getAccessorValue = <S extends string = string>(
accessor: AccessorNode<S>,
): S =>
/* istanbul ignore next */
accessor.type === AST_NODE_TYPES.Identifier
? accessor.name
: getStringValue(accessor);
Expand Down
2 changes: 1 addition & 1 deletion src/rules/valid-expect-in-promise.ts
Expand Up @@ -183,7 +183,7 @@ export default createRule<unknown[], MessageIds>({
if (testFunction && !isHavingAsyncCallBackParam(testFunction)) {
const { body } = testFunction;

/* istanbul ignore if */
/* istanbul ignore if https://github.com/typescript-eslint/typescript-eslint/issues/734 */
if (!body) {
throw new Error(
`Unexpected null when attempting to fix ${context.getFilename()} - please file a github issue at https://github.com/jest-community/eslint-plugin-jest`,
Expand Down

0 comments on commit 189b5e7

Please sign in to comment.