Daily Learnings
Quick notes on technical things I learn each day.
-
Resetting expectations
-
Asserting if a method is or is not called
-
Always use mock constructor
-
Expect function call order
-
Custom predicate on expected input
-
Call count expectation
-
Mocked returned data
-
Generating random 256-bit key as hex
-
Generating random 256-bit key as base64
-
Shortest chain of module requirements