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', () => {
2525
2626 it ( 'Gets all pages at once' , async ( ) => {
2727 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 ) ;
3030 expect ( objects [ 0 ] . name ) . to . equal ( 'Luke Skywalker' ) ;
3131 } ) ;
3232
Original file line number Diff line number Diff line change @@ -99,7 +99,7 @@ describe('Film type', async () => {
9999 '{ allFilms { edges { cursor, node { ...AllFilmProperties } } } }' ,
100100 ) ;
101101 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 ) ;
103103 } ) ;
104104
105105 it ( 'Pagination query' , async ( ) => {
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ describe('Person type', async () => {
9090 skinColor : 'fair' ,
9191 homeworld : { name : 'Tatooine' } ,
9292 filmConnection : { edges : [ { node : { title : 'A New Hope' } } ] } ,
93- species : { name : 'Human' } ,
93+ species : null ,
9494 starshipConnection : { edges : [ { node : { name : 'X-wing' } } ] } ,
9595 vehicleConnection : { edges : [ { node : { name : 'Snowspeeder' } } ] } ,
9696 } ;
@@ -102,7 +102,7 @@ describe('Person type', async () => {
102102 '{ allPeople { edges { cursor, node { ...AllPersonProperties } } } }' ,
103103 ) ;
104104 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 ) ;
106106 } ) ;
107107
108108 it ( 'Pagination query' , async ( ) => {
Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ describe('Planet type', async () => {
9898 '{ allPlanets { edges { cursor, node { ...AllPlanetProperties } } } }' ,
9999 ) ;
100100 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 ) ;
102102 } ) ;
103103
104104 it ( 'Pagination query' , async ( ) => {
Original file line number Diff line number Diff line change @@ -88,7 +88,7 @@ describe('Species type', async () => {
8888 eyeColors : [ 'black' ] ,
8989 hairColors : [ 'n/a' ] ,
9090 homeworld : { name : 'Rodia' } ,
91- language : 'Galactic Basic' ,
91+ language : 'Galatic Basic' ,
9292 name : 'Rodian' ,
9393 personConnection : { edges : [ { node : { name : 'Greedo' } } ] } ,
9494 filmConnection : { edges : [ { node : { title : 'A New Hope' } } ] } ,
@@ -122,7 +122,7 @@ describe('Species type', async () => {
122122 const nextResult = await swapi ( nextQuery ) ;
123123 expect (
124124 nextResult . data . allSpecies . edges . map ( e => e . node . name ) ,
125- ) . to . deep . equal ( [ 'Wookiee ' , 'Rodian' ] ) ;
125+ ) . to . deep . equal ( [ 'Wookie ' , 'Rodian' ] ) ;
126126 } ) ;
127127
128128 describe ( 'Edge cases' , ( ) => {
Original file line number Diff line number Diff line change @@ -90,7 +90,7 @@ describe('Starship type', async () => {
9090 cargoCapacity : 1000000000000 ,
9191 consumables : '3 years' ,
9292 costInCredits : 1000000000000 ,
93- crew : '342953 ' ,
93+ crew : '342,953 ' ,
9494 filmConnection : { edges : [ { node : { title : 'A New Hope' } } ] } ,
9595 hyperdriveRating : 4 ,
9696 length : 120000 ,
@@ -101,7 +101,7 @@ describe('Starship type', async () => {
101101 maxAtmospheringSpeed : null ,
102102 model : 'DS-1 Orbital Battle Station' ,
103103 name : 'Death Star' ,
104- passengers : '843342 ' ,
104+ passengers : '843,342 ' ,
105105 pilotConnection : { edges : [ ] } ,
106106 starshipClass : 'Deep Space Mobile Battlestation' ,
107107 } ;
@@ -113,7 +113,7 @@ describe('Starship type', async () => {
113113 '{ allStarships { edges { cursor, node { ...AllStarshipProperties } } } }' ,
114114 ) ;
115115 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 ) ;
117117 } ) ;
118118
119119 it ( 'Pagination query' , async ( ) => {
You can’t perform that action at this time.
0 commit comments