mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-04 07:10:07 +00:00
bb07f84e41
* Add user status on user profile icon Currently unstyled & no tests * Style the user status icon * Update snapshot for avatar wrapper * More snapshot updates * add if braces * Split out user status functions to avoid circular dep which has the weird effect of just breaking jest's mocking. * type imports * Update imports * Update snapshot * Tests * baseline image * Just snapshot the component itself --------- Co-authored-by: Michael Telatynski <7t3chguy@gmail.com>
46 lines
1.0 KiB
Plaintext
46 lines
1.0 KiB
Plaintext
// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing
|
|
|
|
exports[`UserMenuViewModel should generate a menu options for a guest 1`] = `
|
|
{
|
|
"actions": {
|
|
"createAccount": true,
|
|
"linkNewDevice": false,
|
|
"openFeedback": false,
|
|
"openHomePage": false,
|
|
"openSecurity": false,
|
|
"openSettings": true,
|
|
"signIn": true,
|
|
},
|
|
"avatarUrl": undefined,
|
|
"displayName": "@alice:domain",
|
|
"expanded": false,
|
|
"manageAccountHref": undefined,
|
|
"open": true,
|
|
"showAvatar": false,
|
|
"statusEmoji": undefined,
|
|
"userId": "@alice:domain",
|
|
}
|
|
`;
|
|
|
|
exports[`UserMenuViewModel should generate a menu options for a logged in client 1`] = `
|
|
{
|
|
"actions": {
|
|
"createAccount": false,
|
|
"linkNewDevice": true,
|
|
"openFeedback": false,
|
|
"openHomePage": false,
|
|
"openSecurity": true,
|
|
"openSettings": true,
|
|
"signIn": false,
|
|
},
|
|
"avatarUrl": undefined,
|
|
"displayName": "@alice:domain",
|
|
"expanded": false,
|
|
"manageAccountHref": undefined,
|
|
"open": true,
|
|
"showAvatar": true,
|
|
"statusEmoji": undefined,
|
|
"userId": "@alice:domain",
|
|
}
|
|
`;
|