File tree Expand file tree Collapse file tree 2 files changed +14
-22
lines changed Expand file tree Collapse file tree 2 files changed +14
-22
lines changed Original file line number Diff line number Diff line change @@ -3,10 +3,8 @@ query CustomerByID($id: ID!) {
3
3
customerByID (id : $id ) {
4
4
cAddress {
5
5
city
6
- country
7
6
state
8
- street
9
- postalCode
7
+ country
10
8
}
11
9
cId
12
10
cName
Original file line number Diff line number Diff line change 1
- const fs = require ( 'fs' ) ;
1
+ const fs = require ( "fs" ) ;
2
2
const path = require ( "node:path" ) ;
3
3
const {
4
4
deployAndRun,
@@ -8,51 +8,45 @@ const {
8
8
9
9
testDescription = getTestDescription ( "snippets" , __dirname ) ;
10
10
11
- const requestsFile = path . join ( path . dirname ( __dirname ) , ' requests.graphql' ) ;
12
- const requests = fs . readFileSync ( requestsFile , ' utf8' ) . toString ( ) ;
11
+ const requestsFile = path . join ( path . dirname ( __dirname ) , " requests.graphql" ) ;
12
+ const requests = fs . readFileSync ( requestsFile , " utf8" ) . toString ( ) ;
13
13
14
14
describe ( testDescription , function ( ) {
15
15
const tests = [
16
16
{
17
17
label : "customer-by-id-1" ,
18
18
query : requests ,
19
- operationName : ' CustomerByID' ,
19
+ operationName : " CustomerByID" ,
20
20
variables : { id : 1 } ,
21
21
expected : {
22
22
customerByID : {
23
23
cAddress : {
24
24
city : "Raleigh" ,
25
25
country : "USA" ,
26
26
state : "NC" ,
27
- street : "101 Main St" ,
28
- postalCode : "54321"
29
27
} ,
30
28
cId : "12345" ,
31
- cName : "John Doe"
32
-
33
- }
34
- }
29
+ cName : "John Doe" ,
30
+ } ,
31
+ } ,
35
32
} ,
36
33
{
37
34
label : "customer-by-id-100" ,
38
35
query : requests ,
39
- operationName : ' CustomerByID' ,
36
+ operationName : " CustomerByID" ,
40
37
variables : { id : 100 } ,
41
38
expected : {
42
39
customerByID : {
43
40
cAddress : {
44
41
city : "Hyderabad" ,
45
42
country : "India" ,
46
43
state : "TS" ,
47
- street : "J.N.T.U Colony" ,
48
- postalCode : "654231"
49
44
} ,
50
45
cId : "21345" ,
51
- cName : "Siddarth A"
52
-
53
- }
54
- }
55
- }
56
- ]
46
+ cName : "Siddarth A" ,
47
+ } ,
48
+ } ,
49
+ } ,
50
+ ] ;
57
51
return deployAndRun ( __dirname , tests , stepzen . admin ) ;
58
52
} ) ;
You can’t perform that action at this time.
0 commit comments