Merge pull request #862 from yemel/fix/address-list

Fix showing QR code on address list when it shouldn't
This commit is contained in:
Matias Alejo Garcia 2014-07-08 15:05:55 -03:00
commit 5d63741f35
3 changed files with 8 additions and 2 deletions

View file

@ -75,6 +75,11 @@ describe('Unit: Testing Filters', function() {
expect(removeEmpty([]).length).to.equal(0);
}));
it('should work with undefined', inject(function($filter) {
var removeEmpty = $filter('removeEmpty');
expect(removeEmpty(undefined).length).to.equal(0);
}));
it('should filter empty addresses from other copayers', inject(function($filter) {
var removeEmpty = $filter('removeEmpty');
var addresses = [{