diff --git a/test/blocked_number_controller_test.js b/test/blocked_number_controller_test.js index 0c68c26b4..8df157d31 100644 --- a/test/blocked_number_controller_test.js +++ b/test/blocked_number_controller_test.js @@ -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')); }); }); -}); \ No newline at end of file +}); diff --git a/test/models/profile_test.js b/test/models/profile_test.js index c57579272..dd20317da 100644 --- a/test/models/profile_test.js +++ b/test/models/profile_test.js @@ -131,4 +131,4 @@ describe('Profile', () => { assert.notExists(storage.getLocalProfile().name); }); }); -}); \ No newline at end of file +});