Skip to content

Commit

Permalink
assertValidName-test: Remove duplicate test (graphql#2445)
Browse files Browse the repository at this point in the history
  • Loading branch information
Cito authored Feb 8, 2020
1 parent b55b575 commit f662f95
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/utilities/__tests__/assertValidName-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@ describe('assertValidName()', () => {
);
});

it('throws for use of leading double underscores', () => {
expect(() => assertValidName('__bad')).to.throw(
'"__bad" must not begin with "__", which is reserved by GraphQL introspection.',
);
});

it('throws for non-strings', () => {
// $DisableFlowOnNegativeTest
expect(() => assertValidName({})).to.throw('Expected name to be a string.');
Expand Down

0 comments on commit f662f95

Please sign in to comment.