3 ms·
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 wou
by tayo42 9mo ago
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
- anthonypasq96 9mo agoi 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
- deleted 9mo ago[deleted]