Reply to 1549486309730926592
I think this is typically done in the refactoring step of TDD but I've seen that it helps to "sketch" the new business logic first using calls to helper functions:
function addMemberToGroup(member, group) { if(!isMember(member, group)) { addMember(member, group) } }
Response: 1549486313606356996