Fix review issues.

pull/136/head
Mikunj 6 years ago
parent feb8af476a
commit cd3d17f977

@ -31,7 +31,10 @@ describe('Blocked Number Controller', () => {
storage.addBlockedNumber('1');
storage.addBlockedNumber('2');
BlockedNumberController.refresh();
assert.lengthOf(window.getBlockedNumbers().models, 2);
const blocked = window.getBlockedNumbers().map(m => m.get('number'));
assert.lengthOf(blocked, 2);
assert.deepEqual(['1', '2'], blocked.sort());
});
it('overrides old numbers if we refresh again', () => {
@ -151,4 +154,4 @@ describe('Blocked Number Controller', () => {
assert.isNotOk(BlockedNumberController.isBlocked('1'));
});
});
});
});

@ -131,4 +131,4 @@ describe('Profile', () => {
assert.notExists(storage.getLocalProfile().name);
});
});
});
});

Loading…
Cancel
Save