Skip to content

Commit a2df905

Browse files
author
jane-olszewska
committed
Updated Star Wars schema file and introspection test to test the extra spaces inserted bug.
1 parent 78133b9 commit a2df905

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

tests/StarWarsIntrospectionTest.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -312,7 +312,7 @@ public function testAllowsQueryingTheSchemaForFieldArgs()
312312
'args' => [
313313
[
314314
'defaultValue' => 'null',
315-
'description' => 'If omitted, returns the hero of the whole saga. If provided, returns the hero of that particular episode.',
315+
'description' => "If omitted, returns the hero of the whole saga.\nIf provided, returns the hero of that particular episode.\n",
316316
'name' => 'episode',
317317
'type' => [
318318
'kind' => 'ENUM',

tests/starWarsSchema.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,9 @@ Query:
143143
args:
144144
episode:
145145
type: "Episode"
146-
description: "If omitted, returns the hero of the whole saga. If provided, returns the hero of that particular episode."
146+
description: |
147+
If omitted, returns the hero of the whole saga.
148+
If provided, returns the hero of that particular episode.
147149
resolve: ["Overblog\\GraphQLGenerator\\Tests\\Resolver", "getHero"]
148150
human:
149151
type: "Human"

0 commit comments

Comments
 (0)