Add a missing test case

parent 1ba7aa24
...@@ -81,6 +81,13 @@ describe('sidebar.components.annotation-header', function () { ...@@ -81,6 +81,13 @@ describe('sidebar.components.annotation-header', function () {
user_info: undefined, user_info: undefined,
expectedResult: 'bill', expectedResult: 'bill',
}, },
{
context: 'when the api_render_user_info feature flag is on but ' +
"the user doesn't have a display_name in h",
it: 'returns the username',
user_info: { display_name: null },
expectedResult: 'bill',
},
{ {
context: 'when the api_render_user_info feature flag is on and ' + context: 'when the api_render_user_info feature flag is on and ' +
"the user has a display_name", "the user has a display_name",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment