chore: Replace nextAvailibility mixing with the new useNextAvailability composable and test

This commit is contained in:
Fayaz Ahmed
2024-08-09 19:21:35 +05:30
parent f29a86d1f5
commit 10282fd797
4 changed files with 293 additions and 12 deletions
@@ -99,6 +99,6 @@ describe('useAvailability', () => {
vi.setSystemTime(new Date('Wed Apr 13 2022 18:00:00 GMT-0700'));
const availableAgents = ref([]);
const { replyWaitMessage } = useAvailability(availableAgents);
expect(replyWaitMessage.value).toBe('TEAM_AVAILABILITY.OFFLINE');
expect(replyWaitMessage.value).toBe('REPLY_TIME.BACK_IN at 08:30 AM');
});
});