mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 07:07:35 +01:00
22 lines
482 B
JavaScript
22 lines
482 B
JavaScript
import {
|
|
generateUser,
|
|
translate as t,
|
|
} from '../../../../helpers/api-integration/v3';
|
|
|
|
xdescribe('payments : paypal #checkout', () => {
|
|
let endpoint = '/paypal/checkout';
|
|
let user;
|
|
|
|
beforeEach(async () => {
|
|
user = await generateUser();
|
|
});
|
|
|
|
it('verifies subscription', async () => {
|
|
await expect(user.get(endpoint)).to.eventually.be.rejected.and.eql({
|
|
code: 401,
|
|
error: 'NotAuthorized',
|
|
message: t('missingSubscription'),
|
|
});
|
|
});
|
|
});
|