@@ -48,8 +48,8 @@ describe('[unit] cep-promise for node', () => {
48
48
path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
49
49
)
50
50
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' )
53
53
. replyWithFile (
54
54
200 ,
55
55
path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -177,8 +177,8 @@ describe('[unit] cep-promise for node', () => {
177
177
path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
178
178
)
179
179
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' )
182
182
. replyWithFile (
183
183
200 ,
184
184
path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -227,8 +227,8 @@ describe('[unit] cep-promise for node', () => {
227
227
path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
228
228
)
229
229
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' )
232
232
. replyWithFile (
233
233
200 ,
234
234
path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -278,7 +278,7 @@ describe('[unit] cep-promise for node', () => {
278
278
)
279
279
280
280
nock ( 'https://cep.widenet.host' )
281
- . get ( '/busca-cep/api/cep/05010000 .json' )
281
+ . get ( '/file/apicep/05010-000 .json' )
282
282
. replyWithFile (
283
283
200 ,
284
284
path . join ( __dirname , '/fixtures/widenet-cep-99999999-error.json' )
@@ -328,8 +328,8 @@ describe('[unit] cep-promise for node', () => {
328
328
path . join ( __dirname , '/fixtures/viacep-cep-99999999-error.json' )
329
329
)
330
330
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' )
333
333
. replyWithFile (
334
334
200 ,
335
335
path . join ( __dirname , '/fixtures/widenet-cep-99999999-error.json' )
@@ -379,8 +379,8 @@ describe('[unit] cep-promise for node', () => {
379
379
path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
380
380
)
381
381
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' )
384
384
. replyWithFile (
385
385
200 ,
386
386
path . join ( __dirname , '/fixtures/widenet-cep-99999999-error.json' )
@@ -429,8 +429,8 @@ describe('[unit] cep-promise for node', () => {
429
429
path . join ( __dirname , '/fixtures/viacep-cep-99999999-error.json' )
430
430
)
431
431
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' )
434
434
. replyWithFile (
435
435
200 ,
436
436
path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -478,8 +478,8 @@ describe('[unit] cep-promise for node', () => {
478
478
path . join ( __dirname , '/fixtures/viacep-cep-99999999-error.json' )
479
479
)
480
480
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' )
483
483
. replyWithFile (
484
484
200 ,
485
485
path . join ( __dirname , '/fixtures/widenet-cep-99999999-error.json' )
@@ -527,8 +527,8 @@ describe('[unit] cep-promise for node', () => {
527
527
path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
528
528
)
529
529
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' )
532
532
. replyWithFile (
533
533
200 ,
534
534
path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -575,8 +575,8 @@ describe('[unit] cep-promise for node', () => {
575
575
path . join ( __dirname , '/fixtures/viacep-cep-05010000-found.json' )
576
576
)
577
577
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' )
580
580
. replyWithFile (
581
581
200 ,
582
582
path . join ( __dirname , '/fixtures/widenet-cep-05010000-found.json' )
@@ -624,8 +624,8 @@ describe('[unit] cep-promise for node', () => {
624
624
path . join ( __dirname , '/fixtures/viacep-cep-99999999-error.json' )
625
625
)
626
626
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' )
629
629
. replyWithFile (
630
630
200 ,
631
631
path . join ( __dirname , '/fixtures/widenet-cep-99999999-error.json' )
@@ -704,8 +704,8 @@ describe('[unit] cep-promise for node', () => {
704
704
. get ( '/ws/05010000/json/' )
705
705
. reply ( 400 , '<h2>Bad Request (400)</h2>' )
706
706
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' )
709
709
. reply ( 400 , '<h2>Bad Request (400)</h2>' )
710
710
711
711
nock ( 'https://brasilapi.com.br/' )
@@ -764,8 +764,8 @@ describe('[unit] cep-promise for node', () => {
764
764
. get ( '/ws/05010000/json/' )
765
765
. reply ( 400 , '<h2>Bad Request (400)</h2>' )
766
766
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' )
769
769
. reply ( 400 , '<h2>Bad Request (400)</h2>' )
770
770
771
771
nock ( 'https://brasilapi.com.br/' )
@@ -825,8 +825,8 @@ describe('[unit] cep-promise for node', () => {
825
825
'getaddrinfo ENOTFOUND apps.correios.com.br apps.correios.com.br:443'
826
826
)
827
827
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' )
830
830
. replyWithError (
831
831
'getaddrinfo ENOTFOUND apps.correios.com.br apps.correios.com.br:443'
832
832
)
0 commit comments