aboutsummaryrefslogtreecommitdiffstats
path: root/graphql
diff options
context:
space:
mode:
authorMichael Muré <batolettre@gmail.com>2019-04-05 01:15:52 +0200
committerMichael Muré <batolettre@gmail.com>2019-04-05 01:15:52 +0200
commit5733178aba2487069caba57165cf15aca4689a9c (patch)
tree505b7f3a38d8b9649f2c88fdfd31a60856e618b4 /graphql
parente027d5ee65aad72ca7cface8e609ea0c65f99fbe (diff)
downloadgit-bug-5733178aba2487069caba57165cf15aca4689a9c.tar.gz
graphql: fix test indentation
Diffstat (limited to 'graphql')
-rw-r--r--graphql/graphql_test.go35
1 files changed, 18 insertions, 17 deletions
diff --git a/graphql/graphql_test.go b/graphql/graphql_test.go
index eef8df3d..5abdd30c 100644
--- a/graphql/graphql_test.go
+++ b/graphql/graphql_test.go
@@ -4,11 +4,12 @@ import (
"net/http/httptest"
"testing"
+ "github.com/vektah/gqlgen/client"
+
"github.com/MichaelMure/git-bug/graphql/models"
"github.com/MichaelMure/git-bug/misc/random_bugs"
"github.com/MichaelMure/git-bug/repository"
"github.com/MichaelMure/git-bug/util/test"
- "github.com/vektah/gqlgen/client"
)
func CreateFilledRepo(bugNumber int) repository.ClockedRepo {
@@ -35,7 +36,7 @@ func TestQueries(t *testing.T) {
c := client.New(srv.URL)
query := `
- query {
+ query {
defaultRepository {
allBugs(first: 2) {
pageInfo {
@@ -65,28 +66,28 @@ func TestQueries(t *testing.T) {
startCursor
hasPreviousPage
}
- nodes {
- id
- humanId
- name
- displayName
- }
- }
+ nodes {
+ id
+ humanId
+ name
+ displayName
+ }
+ }
- participants(first: 10) {
+ participants(first: 10) {
pageInfo {
endCursor
hasNextPage
startCursor
hasPreviousPage
}
- nodes {
- id
- humanId
- name
- displayName
- }
- }
+ nodes {
+ id
+ humanId
+ name
+ displayName
+ }
+ }
comments(first: 2) {
pageInfo {