Skip to content

Commit

Permalink
Move dedent into new __testUtils__ folder (#2572)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanGoncharov authored May 21, 2020
1 parent 2a7d449 commit 8be49f6
Show file tree
Hide file tree
Showing 20 changed files with 25 additions and 18 deletions.
File renamed without changes.
File renamed without changes.
3 changes: 2 additions & 1 deletion src/error/__tests__/GraphQLError-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import invariant from '../../jsutils/invariant';

import { Kind } from '../../language/kinds';
Expand Down
3 changes: 2 additions & 1 deletion src/language/__tests__/lexer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { inspect as nodeInspect } from 'util';
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import inspect from '../../jsutils/inspect';

import { GraphQLError } from '../../error/GraphQLError';
Expand Down
3 changes: 2 additions & 1 deletion src/language/__tests__/parser-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import { inspect as nodeInspect } from 'util';
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import inspect from '../../jsutils/inspect';

import { Kind } from '../kinds';
Expand Down
2 changes: 1 addition & 1 deletion src/language/__tests__/printLocation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { Source } from '../source';
import { printSourceLocation } from '../printLocation';
Expand Down
2 changes: 1 addition & 1 deletion src/language/__tests__/printer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { parse } from '../parser';
import { print } from '../printer';
Expand Down
2 changes: 1 addition & 1 deletion src/language/__tests__/schema-parser-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { kitchenSinkSDL } from '../../__fixtures__/index';

Expand Down
2 changes: 1 addition & 1 deletion src/language/__tests__/schema-printer-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { parse } from '../parser';
import { print } from '../printer';
Expand Down
2 changes: 1 addition & 1 deletion src/type/__tests__/schema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { printSchema } from '../../utilities/printSchema';

Expand Down
3 changes: 2 additions & 1 deletion src/type/__tests__/validation-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import inspect from '../../jsutils/inspect';

import { parse } from '../../language/parser';
Expand Down
3 changes: 2 additions & 1 deletion src/utilities/__tests__/buildASTSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import invariant from '../../jsutils/invariant';

import { Kind } from '../../language/kinds';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/buildClientSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { graphqlSync } from '../../graphql';

Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/concatAST-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { parse } from '../../language/parser';
import { print } from '../../language/printer';
Expand Down
3 changes: 2 additions & 1 deletion src/utilities/__tests__/extendSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import invariant from '../../jsutils/invariant';

import { Kind } from '../../language/kinds';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/introspectionFromSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { GraphQLSchema } from '../../type/schema';
import { GraphQLString } from '../../type/scalars';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/lexicographicSortSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { printSchema } from '../printSchema';
import { buildSchema } from '../buildASTSchema';
Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/printSchema-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { DirectiveLocation } from '../../language/directiveLocation';

Expand Down
2 changes: 1 addition & 1 deletion src/utilities/__tests__/separateOperations-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import { parse } from '../../language/parser';
import { print } from '../../language/printer';
Expand Down
3 changes: 2 additions & 1 deletion src/utilities/__tests__/stripIgnoredCharacters-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import { expect } from 'chai';
import { describe, it } from 'mocha';

import dedent from '../../jsutils/dedent';
import dedent from '../../__testUtils__/dedent';

import invariant from '../../jsutils/invariant';

import { parse } from '../../language/parser';
Expand Down

0 comments on commit 8be49f6

Please sign in to comment.