logoalt Hacker News

tayo42yesterday at 9:07 PM1 replyview on HN

You can do that with mocks if it's important that something is only called once, or likely there's some unintended side effect of calling it twice and tests woukd catch the bug


Replies

anthonypasq96yesterday at 10:29 PM

i know you could do it, im asking why on earth you would feel its vital to verify stream.filter() was called twice in a function

show 1 reply