Skip to content

Commit

Permalink
Fix Travis build on #1212 (#1213)
Browse files Browse the repository at this point in the history
Made the exact same changes as in #1211
  • Loading branch information
IvanGoncharov authored and leebyron committed Jan 29, 2018
1 parent fdc10bb commit 11510ed
Showing 1 changed file with 6 additions and 18 deletions.
24 changes: 6 additions & 18 deletions src/utilities/__tests__/schemaPrinter-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -552,16 +552,12 @@ describe('Type System Printer', () => {
description,
});
expect(output).to.equal(dedent`
schema {
query: Root
}
type Root {
type Query {
"""This field is awesome"""
singleField: String
}
`);
const recreatedRoot = buildSchema(output).getTypeMap()['Root'];
const recreatedRoot = buildSchema(output).getTypeMap()['Query'];
const recreatedField = recreatedRoot.getFields()['singleField'];
expect(recreatedField.description).to.equal(description);
});
Expand All @@ -573,18 +569,14 @@ describe('Type System Printer', () => {
description,
});
expect(output).to.equal(dedent`
schema {
query: Root
}
type Root {
type Query {
"""
This field is "awesome"
"""
singleField: String
}
`);
const recreatedRoot = buildSchema(output).getTypeMap()['Root'];
const recreatedRoot = buildSchema(output).getTypeMap()['Query'];
const recreatedField = recreatedRoot.getFields()['singleField'];
expect(recreatedField.description).to.equal(description);
});
Expand All @@ -596,17 +588,13 @@ describe('Type System Printer', () => {
description,
});
expect(output).to.equal(dedent`
schema {
query: Root
}
type Root {
type Query {
""" This field is "awesome"
"""
singleField: String
}
`);
const recreatedRoot = buildSchema(output).getTypeMap()['Root'];
const recreatedRoot = buildSchema(output).getTypeMap()['Query'];
const recreatedField = recreatedRoot.getFields()['singleField'];
expect(recreatedField.description).to.equal(description);
});
Expand Down

0 comments on commit 11510ed

Please # to comment.