Skip to content

Commit 11510ed

Browse files
IvanGoncharovleebyron
authored andcommitted
Fix Travis build on #1212 (#1213)
Made the exact same changes as in #1211
1 parent fdc10bb commit 11510ed

File tree

1 file changed

+6
-18
lines changed

1 file changed

+6
-18
lines changed

src/utilities/__tests__/schemaPrinter-test.js

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -552,16 +552,12 @@ describe('Type System Printer', () => {
552552
description,
553553
});
554554
expect(output).to.equal(dedent`
555-
schema {
556-
query: Root
557-
}
558-
559-
type Root {
555+
type Query {
560556
"""This field is awesome"""
561557
singleField: String
562558
}
563559
`);
564-
const recreatedRoot = buildSchema(output).getTypeMap()['Root'];
560+
const recreatedRoot = buildSchema(output).getTypeMap()['Query'];
565561
const recreatedField = recreatedRoot.getFields()['singleField'];
566562
expect(recreatedField.description).to.equal(description);
567563
});
@@ -573,18 +569,14 @@ describe('Type System Printer', () => {
573569
description,
574570
});
575571
expect(output).to.equal(dedent`
576-
schema {
577-
query: Root
578-
}
579-
580-
type Root {
572+
type Query {
581573
"""
582574
This field is "awesome"
583575
"""
584576
singleField: String
585577
}
586578
`);
587-
const recreatedRoot = buildSchema(output).getTypeMap()['Root'];
579+
const recreatedRoot = buildSchema(output).getTypeMap()['Query'];
588580
const recreatedField = recreatedRoot.getFields()['singleField'];
589581
expect(recreatedField.description).to.equal(description);
590582
});
@@ -596,17 +588,13 @@ describe('Type System Printer', () => {
596588
description,
597589
});
598590
expect(output).to.equal(dedent`
599-
schema {
600-
query: Root
601-
}
602-
603-
type Root {
591+
type Query {
604592
""" This field is "awesome"
605593
"""
606594
singleField: String
607595
}
608596
`);
609-
const recreatedRoot = buildSchema(output).getTypeMap()['Root'];
597+
const recreatedRoot = buildSchema(output).getTypeMap()['Query'];
610598
const recreatedField = recreatedRoot.getFields()['singleField'];
611599
expect(recreatedField.description).to.equal(description);
612600
});

0 commit comments

Comments
 (0)