Skip to content

Commit 1218b25

Browse files
tests: add service key on providers spec
1 parent a318042 commit 1218b25

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

test/unit/cep-promise-providers.spec.js

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ describe('when invoked with providers parameter', () => {
143143
state: 'SP',
144144
city: 'São Paulo',
145145
neighborhood: 'Perdizes',
146-
street: 'Rua Caiubi'
146+
street: 'Rua Caiubi',
147+
service: 'viacep'
147148
})
148149

149150
expect(viaCepMock.isDone()).to.be.equal(true)
@@ -183,7 +184,8 @@ describe('when invoked with providers parameter', () => {
183184
state: 'SP',
184185
city: 'São Paulo',
185186
neighborhood: 'Perdizes',
186-
street: 'Rua Caiubi'
187+
street: 'Rua Caiubi',
188+
service: 'widenet'
187189
})
188190

189191
expect(wideNetMock.isDone()).to.be.equal(true)
@@ -223,7 +225,8 @@ describe('when invoked with providers parameter', () => {
223225
state: 'SP',
224226
city: 'São Paulo',
225227
neighborhood: 'Perdizes',
226-
street: 'Rua Caiubi'
228+
street: 'Rua Caiubi',
229+
service: 'correios'
227230
})
228231

229232
expect(correiosMock.isDone()).to.be.equal(true)
@@ -263,7 +266,8 @@ describe('when invoked with providers parameter', () => {
263266
state: 'SP',
264267
city: 'São Paulo',
265268
neighborhood: 'Perdizes',
266-
street: 'Rua Caiubi'
269+
street: 'Rua Caiubi',
270+
service: address.service
267271
})
268272

269273
expect(viaCepMock.isDone()).to.be.equal(true)
@@ -303,7 +307,8 @@ describe('when invoked with providers parameter', () => {
303307
state: 'SP',
304308
city: 'São Paulo',
305309
neighborhood: 'Perdizes',
306-
street: 'Rua Caiubi'
310+
street: 'Rua Caiubi',
311+
service: address.service
307312
})
308313

309314
expect(viaCepMock.isDone()).to.be.equal(true)

0 commit comments

Comments
 (0)