We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e50345 commit 193264dCopy full SHA for 193264d
test/sort-graphql-sdl/utilities/formatSdl.js
@@ -61,13 +61,32 @@ test('does not sort parameters', (t) => {
61
test('does not strip description', (t) => {
62
const input = `
63
type Foo {
64
- "foo"
+ """foo"""
65
foo: ID!
66
}
67
`;
68
69
const expectedOutput = `type Foo {
70
71
+ foo: ID!
72
+}
73
+`;
74
+
75
+ t.is(formatSdl(input), expectedOutput);
76
+});
77
78
+// @see https://github.com/graphql/graphql-js/issues/2241#issuecomment-546711570
79
+// eslint-disable-next-line ava/no-skip-test
80
+test.skip('does not strip comments', (t) => {
81
+ const input = `
82
+ type Foo {
83
+ # foo
84
85
+ }
86
87
88
+ const expectedOutput = `type Foo {
89
90
91
92
0 commit comments