import {
  generateUser,
  translate as t,
} from '../../../../helpers/api-integration/v3';

xdescribe('payments : paypal #subscribe', () => {
  let endpoint = '/paypal/subscribe';
  let user;

  beforeEach(async () => {
    user = await generateUser();
  });

  it('verifies credentials', async () => {
    await expect(user.get(endpoint)).to.eventually.be.rejected.and.eql({
      code: 401,
      error: 'NotAuthorized',
      message: t('missingSubscription'),
    });
  });
});
