Skip to content

Commit 193264d

Browse files
committed
fix: add a failing test
1 parent 0e50345 commit 193264d

File tree

1 file changed

+21
-2
lines changed

1 file changed

+21
-2
lines changed

test/sort-graphql-sdl/utilities/formatSdl.js

Lines changed: 21 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,13 +61,32 @@ test('does not sort parameters', (t) => {
6161
test('does not strip description', (t) => {
6262
const input = `
6363
type Foo {
64-
"foo"
64+
"""foo"""
6565
foo: ID!
6666
}
6767
`;
6868

6969
const expectedOutput = `type Foo {
70-
"foo"
70+
"""foo"""
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+
foo: ID!
85+
}
86+
`;
87+
88+
const expectedOutput = `type Foo {
89+
# foo
7190
foo: ID!
7291
}
7392
`;

0 commit comments

Comments
 (0)