File tree Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Expand file tree Collapse file tree 6 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -25,8 +25,8 @@ describe('API Helper', () => {
25
25
26
26
it ( 'Gets all pages at once' , async ( ) => {
27
27
const { objects, totalCount } = await getObjectsByType ( 'people' ) ;
28
- expect ( objects . length ) . to . equal ( 87 ) ;
29
- expect ( totalCount ) . to . equal ( 87 ) ;
28
+ expect ( objects . length ) . to . equal ( 82 ) ;
29
+ expect ( totalCount ) . to . equal ( 82 ) ;
30
30
expect ( objects [ 0 ] . name ) . to . equal ( 'Luke Skywalker' ) ;
31
31
} ) ;
32
32
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ describe('Film type', async () => {
99
99
'{ allFilms { edges { cursor, node { ...AllFilmProperties } } } }' ,
100
100
) ;
101
101
const result = await swapi ( query ) ;
102
- expect ( result . data . allFilms . edges . length ) . to . equal ( 7 ) ;
102
+ expect ( result . data . allFilms . edges . length ) . to . equal ( 6 ) ;
103
103
} ) ;
104
104
105
105
it ( 'Pagination query' , async ( ) => {
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ describe('Person type', async () => {
90
90
skinColor : 'fair' ,
91
91
homeworld : { name : 'Tatooine' } ,
92
92
filmConnection : { edges : [ { node : { title : 'A New Hope' } } ] } ,
93
- species : { name : 'Human' } ,
93
+ species : null ,
94
94
starshipConnection : { edges : [ { node : { name : 'X-wing' } } ] } ,
95
95
vehicleConnection : { edges : [ { node : { name : 'Snowspeeder' } } ] } ,
96
96
} ;
@@ -102,7 +102,7 @@ describe('Person type', async () => {
102
102
'{ allPeople { edges { cursor, node { ...AllPersonProperties } } } }' ,
103
103
) ;
104
104
const result = await swapi ( query ) ;
105
- expect ( result . data . allPeople . edges . length ) . to . equal ( 87 ) ;
105
+ expect ( result . data . allPeople . edges . length ) . to . equal ( 82 ) ;
106
106
} ) ;
107
107
108
108
it ( 'Pagination query' , async ( ) => {
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ describe('Planet type', async () => {
98
98
'{ allPlanets { edges { cursor, node { ...AllPlanetProperties } } } }' ,
99
99
) ;
100
100
const result = await swapi ( query ) ;
101
- expect ( result . data . allPlanets . edges . length ) . to . equal ( 61 ) ;
101
+ expect ( result . data . allPlanets . edges . length ) . to . equal ( 60 ) ;
102
102
} ) ;
103
103
104
104
it ( 'Pagination query' , async ( ) => {
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ describe('Species type', async () => {
88
88
eyeColors : [ 'black' ] ,
89
89
hairColors : [ 'n/a' ] ,
90
90
homeworld : { name : 'Rodia' } ,
91
- language : 'Galactic Basic' ,
91
+ language : 'Galatic Basic' ,
92
92
name : 'Rodian' ,
93
93
personConnection : { edges : [ { node : { name : 'Greedo' } } ] } ,
94
94
filmConnection : { edges : [ { node : { title : 'A New Hope' } } ] } ,
@@ -122,7 +122,7 @@ describe('Species type', async () => {
122
122
const nextResult = await swapi ( nextQuery ) ;
123
123
expect (
124
124
nextResult . data . allSpecies . edges . map ( e => e . node . name ) ,
125
- ) . to . deep . equal ( [ 'Wookiee ' , 'Rodian' ] ) ;
125
+ ) . to . deep . equal ( [ 'Wookie ' , 'Rodian' ] ) ;
126
126
} ) ;
127
127
128
128
describe ( 'Edge cases' , ( ) => {
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ describe('Starship type', async () => {
90
90
cargoCapacity : 1000000000000 ,
91
91
consumables : '3 years' ,
92
92
costInCredits : 1000000000000 ,
93
- crew : '342953 ' ,
93
+ crew : '342,953 ' ,
94
94
filmConnection : { edges : [ { node : { title : 'A New Hope' } } ] } ,
95
95
hyperdriveRating : 4 ,
96
96
length : 120000 ,
@@ -101,7 +101,7 @@ describe('Starship type', async () => {
101
101
maxAtmospheringSpeed : null ,
102
102
model : 'DS-1 Orbital Battle Station' ,
103
103
name : 'Death Star' ,
104
- passengers : '843342 ' ,
104
+ passengers : '843,342 ' ,
105
105
pilotConnection : { edges : [ ] } ,
106
106
starshipClass : 'Deep Space Mobile Battlestation' ,
107
107
} ;
@@ -113,7 +113,7 @@ describe('Starship type', async () => {
113
113
'{ allStarships { edges { cursor, node { ...AllStarshipProperties } } } }' ,
114
114
) ;
115
115
const result = await swapi ( query ) ;
116
- expect ( result . data . allStarships . edges . length ) . to . equal ( 37 ) ;
116
+ expect ( result . data . allStarships . edges . length ) . to . equal ( 36 ) ;
117
117
} ) ;
118
118
119
119
it ( 'Pagination query' , async ( ) => {
You can’t perform that action at this time.
0 commit comments