Skip to content

Commit f95a70e

Browse files
committed
[BUGFIX] magento#465 Trim tokens from graphql files to allow multiline type definitions - unit tests adjusted
1 parent 45023fd commit f95a70e

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Diff for: Magento2/Tests/GraphQL/ValidTypeNameUnitTest.graphqls

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# Valid type names.
22
type ValidCamelCaseType {}
3+
type ValidCamelCaseTypeNewLineBrace
4+
{}
35
interface ValidCamelCaseInterface {}
46
enum ValidCamelCaseEnum {}
57

Diff for: Magento2/Tests/GraphQL/ValidTypeNameUnitTest.php

+8-8
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ class ValidTypeNameUnitTest extends AbstractGraphQLSniffUnitTestCase
2323
protected function getErrorList()
2424
{
2525
return [
26-
7 => 1,
27-
8 => 1,
2826
9 => 1,
2927
10 => 1,
3028
11 => 1,
3129
12 => 1,
32-
15 => 1,
33-
16 => 1,
30+
13 => 1,
31+
14 => 1,
3432
17 => 1,
35-
21 => 1,
33+
18 => 1,
34+
19 => 1,
3635
23 => 1,
3736
25 => 1,
38-
35 => 1,
39-
39 => 1,
40-
43 => 1,
37+
27 => 1,
38+
37 => 1,
39+
41 => 1,
40+
45 => 1,
4141
];
4242
}
4343

0 commit comments

Comments
 (0)