@@ -35,7 +35,7 @@ describe('[unit] cep-promise for node', () => {
3535 )
3636
3737 nock ( 'https://buscacepinter.correios.com.br' )
38- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
38+ . post ( '/app/cep/carrega-cep.php' )
3939 . replyWithFile (
4040 200 ,
4141 path . join ( __dirname , '/fixtures/correios-alt-cep-05010000-found.json' )
@@ -164,7 +164,7 @@ describe('[unit] cep-promise for node', () => {
164164 )
165165
166166 nock ( 'https://buscacepinter.correios.com.br' )
167- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
167+ . post ( '/app/cep/carrega-cep.php' )
168168 . replyWithFile (
169169 200 ,
170170 path . join ( __dirname , '/fixtures/correios-alt-cep-05010000-found.json' )
@@ -214,7 +214,7 @@ describe('[unit] cep-promise for node', () => {
214214 )
215215
216216 nock ( 'https://buscacepinter.correios.com.br' )
217- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
217+ . post ( '/app/cep/carrega-cep.php' )
218218 . replyWithFile (
219219 200 ,
220220 path . join ( __dirname , '/fixtures/correios-alt-cep-05010000-found.json' )
@@ -264,7 +264,7 @@ describe('[unit] cep-promise for node', () => {
264264 )
265265
266266 nock ( 'https://buscacepinter.correios.com.br' )
267- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
267+ . post ( '/app/cep/carrega-cep.php' )
268268 . replyWithFile (
269269 200 ,
270270 path . join ( __dirname , '/fixtures/correios-alt-cep-99999999-error.json' )
@@ -299,7 +299,7 @@ describe('[unit] cep-promise for node', () => {
299299 city : 'São Paulo' ,
300300 neighborhood : 'Perdizes' ,
301301 street : 'Rua Caiubi' ,
302- service : 'correios-alt '
302+ service : 'correios'
303303 } )
304304 )
305305 } )
@@ -315,7 +315,7 @@ describe('[unit] cep-promise for node', () => {
315315 )
316316
317317 nock ( 'https://buscacepinter.correios.com.br' )
318- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
318+ . post ( '/app/cep/carrega-cep.php' )
319319 . replyWithFile (
320320 200 ,
321321 path . join ( __dirname , '/fixtures/correios-alt-cep-05010000-found.json' )
@@ -350,7 +350,7 @@ describe('[unit] cep-promise for node', () => {
350350 city : 'São Paulo' ,
351351 neighborhood : 'Perdizes' ,
352352 street : 'Rua Caiubi' ,
353- service : 'correios'
353+ service : 'correios-alt '
354354 } )
355355 )
356356 } )
@@ -366,7 +366,7 @@ describe('[unit] cep-promise for node', () => {
366366 )
367367
368368 nock ( 'https://buscacepinter.correios.com.br' )
369- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
369+ . post ( '/app/cep/carrega-cep.php' )
370370 . replyWithFile (
371371 200 ,
372372 path . join ( __dirname , '/fixtures/correios-alt-cep-99999999-error.json' )
@@ -416,7 +416,7 @@ describe('[unit] cep-promise for node', () => {
416416 )
417417
418418 nock ( 'https://buscacepinter.correios.com.br' )
419- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
419+ . post ( '/app/cep/carrega-cep.php' )
420420 . replyWithFile (
421421 200 ,
422422 path . join ( __dirname , '/fixtures/correios-alt-cep-99999999-error.json' )
@@ -465,7 +465,7 @@ describe('[unit] cep-promise for node', () => {
465465 )
466466
467467 nock ( 'https://buscacepinter.correios.com.br' )
468- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
468+ . post ( '/app/cep/carrega-cep.php' )
469469 . replyWithFile (
470470 200 ,
471471 path . join ( __dirname , '/fixtures/correios-alt-cep-99999999-error.json' )
@@ -514,7 +514,7 @@ describe('[unit] cep-promise for node', () => {
514514 )
515515
516516 nock ( 'https://buscacepinter.correios.com.br' )
517- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
517+ . post ( '/app/cep/carrega-cep.php' )
518518 . replyWithFile (
519519 200 ,
520520 path . join ( __dirname , '/fixtures/correios-alt-cep-05010000-found.json' )
@@ -562,7 +562,7 @@ describe('[unit] cep-promise for node', () => {
562562 )
563563
564564 nock ( 'https://buscacepinter.correios.com.br' )
565- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
565+ . post ( '/app/cep/carrega-cep.php' )
566566 . replyWithFile (
567567 200 ,
568568 path . join ( __dirname , '/fixtures/correios-alt-cep-05010000-found.json' )
@@ -611,7 +611,7 @@ describe('[unit] cep-promise for node', () => {
611611 )
612612
613613 nock ( 'https://buscacepinter.correios.com.br' )
614- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
614+ . post ( '/app/cep/carrega-cep.php' )
615615 . replyWithFile (
616616 200 ,
617617 path . join ( __dirname , '/fixtures/correios-alt-cep-99999999-error.json' )
@@ -651,7 +651,7 @@ describe('[unit] cep-promise for node', () => {
651651 service : 'correios'
652652 } ,
653653 {
654- message : 'Erro ao se conectar com o serviço dos Correios Alt .' ,
654+ message : 'CEP não encontrado na base dos Correios.' ,
655655 service : 'correios-alt'
656656 } ,
657657 {
@@ -697,7 +697,7 @@ describe('[unit] cep-promise for node', () => {
697697 )
698698
699699 nock ( 'https://buscacepinter.correios.com.br' )
700- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
700+ . post ( '/app/cep/carrega-cep.php' )
701701 . reply ( 400 , '<h2>Bad Request (400)</h2>' )
702702
703703 nock ( 'https://viacep.com.br' )
@@ -757,7 +757,7 @@ describe('[unit] cep-promise for node', () => {
757757 )
758758
759759 nock ( 'https://buscacepinter.correios.com.br' )
760- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
760+ . post ( '/app/cep/carrega-cep.php' )
761761 . reply ( 200 , { erro :true } )
762762
763763 nock ( 'https://viacep.com.br' )
@@ -816,7 +816,7 @@ describe('[unit] cep-promise for node', () => {
816816 )
817817
818818 nock ( 'https://buscacepinter.correios.com.br' )
819- . get ( '/app/cep/carrega-cep.php?cep=05010000 ' )
819+ . post ( '/app/cep/carrega-cep.php' )
820820 . reply ( 200 , { erro :true } )
821821
822822 nock ( 'https://viacep.com.br' )
0 commit comments