Fix showing QR code on address list when it shouldn't

This commit is contained in:
Yemel Jardi 2014-07-08 12:23:10 -03:00
commit cef5b72557
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 = [{