DEV Community


Discussion on: A Different Unit Test Pattern

rfornal profile image
bob.js Author

Exactly ... the code I presented abstracted put the Arrange and Act portions of the tests. I strongly suspect this was to adhere to the single Assert so tightly, they lost focus on what actually needed to be accomplished ... adjusting the code-under-test to make it more testable.