try {
      await Integrations.updateMessengerIntegration(_integration._id, doc);
    } catch (e) {
      expect(e.message).toBe('Duplicated messenger for single brand');
    }