@@ -12,25 +12,25 @@ import { getFromLocalUrl } from '../local';
1212
1313describe ( 'Local API Wrapper' , ( ) => {
1414 it ( 'Gets a person' , async ( ) => {
15- const luke = await getFromLocalUrl ( 'https://swapi.co /api/people/1/' ) ;
15+ const luke = await getFromLocalUrl ( 'https://swapi.dev /api/people/1/' ) ;
1616 expect ( luke . name ) . to . equal ( 'Luke Skywalker' ) ;
17- const threePO = await getFromLocalUrl ( 'https://swapi.co /api/people/2/' ) ;
17+ const threePO = await getFromLocalUrl ( 'https://swapi.dev /api/people/2/' ) ;
1818 expect ( threePO . name ) . to . equal ( 'C-3PO' ) ;
1919 } ) ;
2020
2121 it ( 'Gets pages' , async ( ) => {
22- const firstPeople = await getFromLocalUrl ( 'https://swapi.co /api/people/' ) ;
22+ const firstPeople = await getFromLocalUrl ( 'https://swapi.dev /api/people/' ) ;
2323 expect ( firstPeople . results . length ) . to . equal ( 10 ) ;
2424 expect ( firstPeople . results [ 0 ] . name ) . to . equal ( 'Luke Skywalker' ) ;
2525 const secondPeople = await getFromLocalUrl (
26- 'https://swapi.co /api/people/?page=2' ,
26+ 'https://swapi.dev /api/people/?page=2' ,
2727 ) ;
2828 expect ( secondPeople . results . length ) . to . equal ( 10 ) ;
2929 expect ( secondPeople . results [ 0 ] . name ) . to . equal ( 'Anakin Skywalker' ) ;
3030 } ) ;
3131
3232 it ( 'Gets first page by default' , async ( ) => {
33- const people = await getFromLocalUrl ( 'https://swapi.co /api/people/' ) ;
33+ const people = await getFromLocalUrl ( 'https://swapi.dev /api/people/' ) ;
3434 expect ( people . results . length ) . to . equal ( 10 ) ;
3535 expect ( people . results [ 0 ] . name ) . to . equal ( 'Luke Skywalker' ) ;
3636 } ) ;
0 commit comments