chore: Use availability in dashboard presence toggle (#3212)

This commit is contained in:
Sojan Jose
2021-10-15 00:30:48 +05:30
committed by GitHub
parent ed25435ac2
commit cebd34053b
7 changed files with 22 additions and 19 deletions

View File

@@ -115,9 +115,9 @@ describe('#actions', () => {
});
});
describe('#setCurrentUserAvailabilityStatus', () => {
describe('#setCurrentUserAvailability', () => {
it('sends correct mutations if user id is available', async () => {
actions.setCurrentUserAvailabilityStatus(
actions.setCurrentUserAvailability(
{
commit,
state: { currentUser: { id: 1 } },
@@ -130,7 +130,7 @@ describe('#actions', () => {
});
it('does not send correct mutations if user id is not available', async () => {
actions.setCurrentUserAvailabilityStatus(
actions.setCurrentUserAvailability(
{
commit,
state: { currentUser: { id: 1 } },