@@ -48,8 +48,8 @@ describe('[unit] cep-promise for node', () => {
4848 path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
4949 )
5050
51- nock ( 'https://ws .apicep.com' )
52- . get ( '/busca-cep/api/cep/05010000 .json' )
51+ nock ( 'https://cdn .apicep.com' )
52+ . get ( '/file/apicep/05010-000 .json' )
5353 . replyWithFile (
5454 200 ,
5555 path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -177,8 +177,8 @@ describe('[unit] cep-promise for node', () => {
177177 path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
178178 )
179179
180- nock ( 'https://ws .apicep.com' )
181- . get ( '/busca-cep/api/cep/05010000 .json' )
180+ nock ( 'https://cdn .apicep.com' )
181+ . get ( '/file/apicep/05010-000 .json' )
182182 . replyWithFile (
183183 200 ,
184184 path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -227,8 +227,8 @@ describe('[unit] cep-promise for node', () => {
227227 path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
228228 )
229229
230- nock ( 'https://ws .apicep.com' )
231- . get ( '/busca-cep/api/cep/05010000 .json' )
230+ nock ( 'https://cdn .apicep.com' )
231+ . get ( '/file/apicep/05010-000 .json' )
232232 . replyWithFile (
233233 200 ,
234234 path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -278,7 +278,7 @@ describe('[unit] cep-promise for node', () => {
278278 )
279279
280280 nock ( 'https://cep.widenet.host' )
281- . get ( '/busca-cep/api/cep/05010000 .json' )
281+ . get ( '/file/apicep/05010-000 .json' )
282282 . replyWithFile (
283283 200 ,
284284 path . join ( __dirname , '/fixtures/widenet-cep-99999999-error.json' )
@@ -328,8 +328,8 @@ describe('[unit] cep-promise for node', () => {
328328 path . join ( __dirname , '/fixtures/viacep-cep-99999999-error.json' )
329329 )
330330
331- nock ( 'https://ws .apicep.com' )
332- . get ( '/busca-cep/api/cep/05010000 .json' )
331+ nock ( 'https://cdn .apicep.com' )
332+ . get ( '/file/apicep/05010-000 .json' )
333333 . replyWithFile (
334334 200 ,
335335 path . join ( __dirname , '/fixtures/widenet-cep-99999999-error.json' )
@@ -379,8 +379,8 @@ describe('[unit] cep-promise for node', () => {
379379 path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
380380 )
381381
382- nock ( 'https://ws .apicep.com' )
383- . get ( '/busca-cep/api/cep/05010000 .json' )
382+ nock ( 'https://cdn .apicep.com' )
383+ . get ( '/file/apicep/05010-000 .json' )
384384 . replyWithFile (
385385 200 ,
386386 path . join ( __dirname , '/fixtures/widenet-cep-99999999-error.json' )
@@ -429,8 +429,8 @@ describe('[unit] cep-promise for node', () => {
429429 path . join ( __dirname , '/fixtures/viacep-cep-99999999-error.json' )
430430 )
431431
432- nock ( 'https://ws .apicep.com' )
433- . get ( '/busca-cep/api/cep/05010000 .json' )
432+ nock ( 'https://cdn .apicep.com' )
433+ . get ( '/file/apicep/05010-000 .json' )
434434 . replyWithFile (
435435 200 ,
436436 path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -478,8 +478,8 @@ describe('[unit] cep-promise for node', () => {
478478 path . join ( __dirname , '/fixtures/viacep-cep-99999999-error.json' )
479479 )
480480
481- nock ( 'https://ws .apicep.com' )
482- . get ( '/busca-cep/api/cep/05010000 .json' )
481+ nock ( 'https://cdn .apicep.com' )
482+ . get ( '/file/apicep/05010-000 .json' )
483483 . replyWithFile (
484484 200 ,
485485 path . join ( __dirname , '/fixtures/widenet-cep-99999999-error.json' )
@@ -527,8 +527,8 @@ describe('[unit] cep-promise for node', () => {
527527 path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
528528 )
529529
530- nock ( 'https://ws .apicep.com' )
531- . get ( '/busca-cep/api/cep/05010000 .json' )
530+ nock ( 'https://cdn .apicep.com' )
531+ . get ( '/file/apicep/05010-000 .json' )
532532 . replyWithFile (
533533 200 ,
534534 path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -575,8 +575,8 @@ describe('[unit] cep-promise for node', () => {
575575 path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
576576 )
577577
578- nock ( 'https://ws .apicep.com' )
579- . get ( '/busca-cep/api/cep/05010000 .json' )
578+ nock ( 'https://cdn .apicep.com' )
579+ . get ( '/file/apicep/05010-000 .json' )
580580 . replyWithFile (
581581 200 ,
582582 path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -624,8 +624,8 @@ describe('[unit] cep-promise for node', () => {
624624 path . join ( __dirname , '/fixtures/viacep-cep-99999999-error.json' )
625625 )
626626
627- nock ( 'https://ws .apicep.com' )
628- . get ( '/busca-cep/api/cep/99999999 .json' )
627+ nock ( 'https://cdn .apicep.com' )
628+ . get ( '/file/apicep/99999-999 .json' )
629629 . replyWithFile (
630630 200 ,
631631 path . join ( __dirname , '/fixtures/widenet-cep-99999999-error.json' )
@@ -704,8 +704,8 @@ describe('[unit] cep-promise for node', () => {
704704 . get ( '/ws/05010000/json/' )
705705 . reply ( 400 , '<h2>Bad Request (400)</h2>' )
706706
707- nock ( 'https://ws .apicep.com' )
708- . get ( '/busca-cep/api/cep/05010000 .json' )
707+ nock ( 'https://cdn .apicep.com' )
708+ . get ( '/file/apicep/05010-000 .json' )
709709 . reply ( 400 , '<h2>Bad Request (400)</h2>' )
710710
711711 nock ( 'https://brasilapi.com.br/' )
@@ -764,8 +764,8 @@ describe('[unit] cep-promise for node', () => {
764764 . get ( '/ws/05010000/json/' )
765765 . reply ( 400 , '<h2>Bad Request (400)</h2>' )
766766
767- nock ( 'https://ws .apicep.com' )
768- . get ( '/busca-cep/api/cep/05010000 .json' )
767+ nock ( 'https://cdn .apicep.com' )
768+ . get ( '/file/apicep/05010-000 .json' )
769769 . reply ( 400 , '<h2>Bad Request (400)</h2>' )
770770
771771 nock ( 'https://brasilapi.com.br/' )
@@ -825,8 +825,8 @@ describe('[unit] cep-promise for node', () => {
825825 'getaddrinfo ENOTFOUND apps.correios.com.br apps.correios.com.br:443'
826826 )
827827
828- nock ( 'https://ws .apicep.com' )
829- . get ( '/busca-cep/api/cep/05010000 .json' )
828+ nock ( 'https://cdn .apicep.com' )
829+ . get ( '/file/apicep/05010-000 .json' )
830830 . replyWithError (
831831 'getaddrinfo ENOTFOUND apps.correios.com.br apps.correios.com.br:443'
832832 )
0 commit comments