Skip to content

Commit

Permalink
Fix spelling, "lexographicSortSchema" => "lexicographicSortSchema" (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored and leebyron committed Feb 1, 2018
1 parent 360fa06 commit b333b30
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,7 +327,7 @@ export {
// language AST.
extendSchema,
// Sort a GraphQLSchema.
lexographicSortSchema,
lexicographicSortSchema,
// Print a GraphQLSchema to GraphQL Schema language.
printSchema,
// Prints the built-in introspection schema in the Schema Language
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,14 @@ import { expect } from 'chai';
import dedent from '../../jsutils/dedent';
import { printSchema } from '../schemaPrinter';
import { buildSchema } from '../buildASTSchema';
import { lexographicSortSchema } from '../lexographicSortSchema';
import { lexicographicSortSchema } from '../lexicographicSortSchema';

function sortSDL(sdl) {
const schema = buildSchema(sdl);
return printSchema(lexographicSortSchema(schema));
return printSchema(lexicographicSortSchema(schema));
}

describe('lexographicSortSchema', () => {
describe('lexicographicSortSchema', () => {
it('sort fields', () => {
const sorted = sortSDL(dedent`
input Bar {
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export { buildASTSchema, buildSchema, getDescription } from './buildASTSchema';
export { extendSchema } from './extendSchema';

// Sort a GraphQLSchema.
export { lexographicSortSchema } from './lexographicSortSchema';
export { lexicographicSortSchema } from './lexicographicSortSchema';

// Print a GraphQLSchema to GraphQL Schema language.
export {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import { isIntrospectionType } from '../type/introspection';
/**
* Sort GraphQLSchema.
*/
export function lexographicSortSchema(schema: GraphQLSchema): GraphQLSchema {
export function lexicographicSortSchema(schema: GraphQLSchema): GraphQLSchema {
const cache = Object.create(null);

const sortMaybeType = maybeType => maybeType && sortNamedType(maybeType);
Expand Down

0 comments on commit b333b30

Please sign in to comment.