It Looks Right To Me

Definition:

  • Where the test data for negative cases makes the test hard to understand

Code Example:

expect(getFieldCaseInsensitive(obj, 'username'))
.toEqual('Mr User');

expect(getFieldCaseInsensitive(obj, 'Username'))
.toEqual('Mr User');

expect(getFieldCaseInsensitive(obj, 'UserNaME'))
.toEqual('Mr User');

References:

Quality attributes

  • - Code Example

  • - Cause and Effect

  • - Frequency

  • - Refactoring