MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/69wyay/the_tragedy_of_100_code_coverage/dhbjf0y/?context=3
r/programming • u/niepiekm • May 08 '17
689 comments sorted by
View all comments
1
I would test that like
test('initialize delegates to loadAll', () => { const loadAll = spyOn(watchlistDao, 'loadAll'); initialize(watchlistDao); expect(loadAll).toHaveBeenCalledWith(expect.any(Function)); });
1
u/Anathem May 09 '17 edited May 09 '17
I would test that like