-
Notifications
You must be signed in to change notification settings - Fork 10
Expand file tree
/
Copy pathAddressServiceSpec.js
More file actions
executable file
·30 lines (29 loc) · 1013 Bytes
/
AddressServiceSpec.js
File metadata and controls
executable file
·30 lines (29 loc) · 1013 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
describe("SERVICE: AddressService", function () {
var AddressService;
beforeEach(module('gumga.services.address'));
beforeEach(inject(function (_GumgaAddressService_) {
AddressService = _GumgaAddressService_;
}))
it('Should contain the right array in variable \'everyUf\'',function() {
expect(AddressService.everyUf.length).toEqual(26);
})
it('Should contain the right array in variable \'everyLogradouro\'',function() {
expect(AddressService.everyLogradouro.length).toEqual(44);
})
it('Should contain the right array in variable \'availableCountries\'',function () {
expect(AddressService.availableCountries).toEqual(['Brasil']);
})
it('Should return the object formatted',function () {
expect(AddressService.returnFormattedObject()).toEqual({
zipCode : null,
premisseType: null,
premisse: null,
number: null,
information: null,
neighbourhood: null,
localization: null,
state: null,
country: null
})
})
});