it('should not throw error when user is not active', async () => {
            const user = {
                active: false,
                type: 'user',
            };