Skip to content

Commit

Permalink
chore(tsutils): remove duplicate interface (#399)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Aug 16, 2019
1 parent 189b5e7 commit 956a10c
Showing 1 changed file with 6 additions and 11 deletions.
17 changes: 6 additions & 11 deletions src/rules/tsUtils.ts
Expand Up @@ -296,6 +296,12 @@ export type ParsedEqualityMatcherCall<
arguments: [Argument];
};

export enum ModifierName {
not = 'not',
rejects = 'rejects',
resolves = 'resolves',
}

enum EqualityMatcher {
toBe = 'toBe',
toEqual = 'toEqual',
Expand All @@ -308,17 +314,6 @@ export const isParsedEqualityMatcherCall = (
matcher.arguments !== null &&
matcher.arguments.length === 1;

export enum ModifierName {
not = 'not',
rejects = 'rejects',
resolves = 'resolves',
}

interface ExpectCall extends TSESTree.CallExpression {
callee: AccessorNode<'expect'>;
parent: TSESTree.Node;
}

/**
* Represents a parsed expect matcher, such as `toBe`, `toContain`, and so on.
*/
Expand Down

0 comments on commit 956a10c

Please sign in to comment.