Skip to content

Commit

Permalink
move __tests__ from src
Browse files Browse the repository at this point in the history
  • Loading branch information
sarkistlt committed Aug 25, 2017
1 parent 67f66bf commit 4d2434d
Show file tree
Hide file tree
Showing 11 changed files with 21 additions and 21 deletions.
Expand Up @@ -4,9 +4,9 @@ import { GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLString } from 'graph
import mongooseSchemaToGraphQL, {
generateDescriptionForSubField,
generateNameForSubField,
} from '../../lib/index.min';
} from '../lib/index.min';

import { getRidOfThunks } from '../../tools/util';
import { getRidOfThunks } from '../tools/util';

test('generates schemas cyclicly defined population correctly', () => {
const NAME = 'Whatever';
Expand Down
Expand Up @@ -4,9 +4,9 @@ import { GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLString } from 'graph
import mongooseSchemaToGraphQL, {
generateDescriptionForSubField,
generateNameForSubField,
} from '../../lib/index.min';
} from '../lib/index.min';

import { getRidOfThunks } from '../../tools/util';
import { getRidOfThunks } from '../tools/util';

test('excludes given fields', () => {
const NAME = 'ExcludeTestSchema';
Expand Down
Expand Up @@ -4,9 +4,9 @@ import { GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLString } from 'graph
import mongooseSchemaToGraphQL, {
generateDescriptionForSubField,
generateNameForSubField,
} from '../../lib/index.min';
} from '../lib/index.min';

import { getRidOfThunks } from '../../tools/util';
import { getRidOfThunks } from '../tools/util';

test('adds given fields with `extend` property', () => {
const NAME = 'ExtendTestSchema';
Expand Down
Expand Up @@ -4,9 +4,9 @@ import { GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLString } from 'graph
import mongooseSchemaToGraphQL, {
generateDescriptionForSubField,
generateNameForSubField,
} from '../../lib/index.min';
} from '../lib/index.min';

import { getRidOfThunks } from '../../tools/util';
import { getRidOfThunks } from '../tools/util';

test('generates flat schema correctly', () => {
const NAME = 'FlatTestSchema';
Expand Down
Expand Up @@ -4,7 +4,7 @@ import { GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLString } from 'graph
import mongooseSchemaToGraphQL, {
generateDescriptionForSubField,
generateNameForSubField,
} from '../../lib/index.min';
} from '../lib/index.min';

test('memoizes created types', () => {
const NAME = 'ExtendTestSchema';
Expand Down
Expand Up @@ -4,9 +4,9 @@ import { GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLString } from 'graph
import mongooseSchemaToGraphQL, {
generateDescriptionForSubField,
generateNameForSubField,
} from '../../lib/index.min';
} from '../lib/index.min';

import { getRidOfThunks } from '../../tools/util';
import { getRidOfThunks } from '../tools/util';

test('generates nested schema correctly', () => {
const NAME = 'NestedTestSchema';
Expand Down
Expand Up @@ -4,9 +4,9 @@ import { GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLString } from 'graph
import mongooseSchemaToGraphQL, {
generateDescriptionForSubField,
generateNameForSubField,
} from '../../lib/index.min';
} from '../lib/index.min';

import { getRidOfThunks } from '../../tools/util';
import { getRidOfThunks } from '../tools/util';

test('generates schemas with population usage correctly', () => {
const NAME = 'RecursiveTestSchema';
Expand Down
Expand Up @@ -4,9 +4,9 @@ import { GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLString } from 'graph
import mongooseSchemaToGraphQL, {
generateDescriptionForSubField,
generateNameForSubField,
} from '../../lib/index.min';
} from '../lib/index.min';

import { getRidOfThunks } from '../../tools/util';
import { getRidOfThunks } from '../tools/util';

test('generates schemas with arrays correctly', () => {
const NAME = 'ArrayTestSchema';
Expand Down
Expand Up @@ -4,9 +4,9 @@ import { GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLString } from 'graph
import mongooseSchemaToGraphQL, {
generateDescriptionForSubField,
generateNameForSubField,
} from '../../lib/index.min';
} from '../lib/index.min';

import { getRidOfThunks } from '../../tools/util';
import { getRidOfThunks } from '../tools/util';

test('generates schemas with primitive arrays correctly', () => {
const NAME = 'ArrayTestSchema';
Expand Down
Expand Up @@ -4,9 +4,9 @@ import { GraphQLInt, GraphQLList, GraphQLObjectType, GraphQLString } from 'graph
import mongooseSchemaToGraphQL, {
generateDescriptionForSubField,
generateNameForSubField,
} from '../../lib/index.min';
} from '../lib/index.min';

import { getRidOfThunks } from '../../tools/util';
import { getRidOfThunks } from '../tools/util';

test('generates schemas which contain field with the same schema correctly', () => {
const NAME = 'RecursiveTestSchema';
Expand Down
@@ -1,9 +1,9 @@
import mongoose from 'mongoose';
import { GraphQLList, GraphQLObjectType, GraphQLString } from 'graphql';

import mongooseSchemaToGraphQL from '../../lib/index.min';
import mongooseSchemaToGraphQL from '../lib/index.min';

import { getRidOfThunks } from '../../tools/util';
import { getRidOfThunks } from '../tools/util';

test('generates schemas with arrays which contain the same schema correctly', () => {
const NAME = 'RecursiveArrayTestType';
Expand Down

0 comments on commit 4d2434d

Please sign in to comment.