Skip to content

Commit

Permalink
chore(gatsby): remove obsolete tests (#21374)
Browse files Browse the repository at this point in the history
  • Loading branch information
vladar authored Feb 11, 2020
1 parent 47d8453 commit f99d968
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 542 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -233,190 +233,6 @@ Object {
}
`;

exports[`Extra fields adds id field if type has it 1`] = `
Object {
"hash": "hash",
"isHook": false,
"isStaticQuery": false,
"name": "mockFileQuery",
"originalText": "
query mockFileQuery {
allDirectory {
nodes {
__typename
}
}
}
",
"path": "mockFile",
"text": "query mockFileQuery {
allDirectory {
nodes {
__typename
}
}
}
",
}
`;

exports[`Extra fields adds id field in the query of arbitrary depth 1`] = `
Object {
"hash": "hash",
"isHook": false,
"isStaticQuery": false,
"name": "mockFileQuery",
"originalText": "
query mockFileQuery {
allDirectory {
nodes {
contents {
... on Directory {
contents {
... on Directory {
contents {
... on File {
__typename
}
... on Directory {
__typename
}
}
}
}
}
}
children {
children {
children {
__typename
}
... on Directory {
contents {
... on File {
__typename
}
}
}
}
}
}
}
}
",
"path": "mockFile",
"text": "query mockFileQuery {
allDirectory {
nodes {
contents {
__typename
... on Directory {
contents {
__typename
... on Directory {
contents {
__typename
... on File {
__typename
}
... on Directory {
__typename
}
}
}
}
}
}
children {
__typename
children {
__typename
children {
__typename
}
... on Directory {
contents {
__typename
... on File {
__typename
}
}
}
}
}
}
}
}
",
}
`;

exports[`Extra fields adds id field within fragment if type has it 1`] = `
Object {
"hash": "hash",
"isHook": false,
"isStaticQuery": false,
"name": "mockFileQuery",
"originalText": "
query mockFileQuery {
allDirectory {
nodes {
... Directory
}
}
}
fragment Directory on Directory {
__typename
}
",
"path": "mockFile",
"text": "fragment Directory on Directory {
__typename
}
query mockFileQuery {
allDirectory {
nodes {
...Directory
}
}
}
",
}
`;

exports[`Extra fields adds id field within inline fragment if type has it 1`] = `
Object {
"hash": "hash",
"isHook": false,
"isStaticQuery": false,
"name": "mockFileQuery",
"originalText": "
query mockFileQuery {
allDirectory {
nodes {
... on Directory {
__typename
}
}
}
}
",
"path": "mockFile",
"text": "query mockFileQuery {
allDirectory {
nodes {
... on Directory {
__typename
}
}
}
}
",
}
`;

exports[`Extra fields doesn't add __typename field to abstract types twice 1`] = `
Object {
"hash": "hash",
Expand Down Expand Up @@ -594,186 +410,6 @@ query mockFileQuery {
}
`;

exports[`Extra fields doesn't add id field twice 1`] = `
Object {
"hash": "hash",
"isHook": false,
"isStaticQuery": false,
"name": "mockFileQuery",
"originalText": "
query mockFileQuery {
allDirectory {
nodes {
id
contents {
... on File {
id
}
... on Directory {
id
}
}
children {
id
... Node
}
... on Directory {
id
children {
id
}
}
...DirectoryContents
}
}
}
fragment DirectoryContents on Directory {
contents {
... on File {
id
}
... on Directory {
id
}
}
children {
id
}
}
fragment Node on Node {
id
}
",
"path": "mockFile",
"text": "fragment Node on Node {
__typename
id
}
fragment DirectoryContents on Directory {
contents {
__typename
... on File {
id
}
... on Directory {
id
}
}
children {
__typename
id
}
}
query mockFileQuery {
allDirectory {
nodes {
id
contents {
__typename
... on File {
id
}
... on Directory {
id
}
}
children {
__typename
id
...Node
}
... on Directory {
id
children {
__typename
id
}
}
...DirectoryContents
}
}
}
",
}
`;

exports[`Extra fields doesn't add id field when alias for id exists 1`] = `
Object {
"hash": "hash",
"isHook": false,
"isStaticQuery": false,
"name": "mockFileQuery",
"originalText": "
query mockFileQuery {
allDirectory {
nodes {
contents {
... on File {
id: absolutePath
}
... on Directory {
id: absolutePath
}
}
... on Directory {
id: absolutePath
}
...DirectoryContents
}
}
}
fragment DirectoryContents on Directory {
contents {
... on File {
id: absolutePath
}
... on Directory {
id: absolutePath
}
}
}
",
"path": "mockFile",
"text": "fragment DirectoryContents on Directory {
contents {
__typename
... on File {
id: absolutePath
}
... on Directory {
id: absolutePath
}
}
}
query mockFileQuery {
allDirectory {
nodes {
contents {
__typename
... on File {
id: absolutePath
}
... on Directory {
id: absolutePath
}
}
... on Directory {
id: absolutePath
}
...DirectoryContents
}
}
}
",
}
`;

exports[`actual compiling accepts identical fragment definitions 1`] = `
Map {
"mockFile" => Object {
Expand Down
Loading

0 comments on commit f99d968

Please sign in to comment.