Files
habitica/test/api/v3/integration/payments/POST-payments_amazon_checkout.test.js
Victor Pudeyev fa21577c46 V3 payments 6 (#7104)
* payments api: cancelSubscription

* some more tests for amazon payments

* promisifying amazon payments

* somehow payment stub is not working

* cleaning up tests

* renaming tests in api/v3/integration/payments

* improvements

* cleanup, lint

* fixes as per comments

* moment.zone() is back in.
2016-04-27 21:26:32 +02:00

23 lines
495 B
JavaScript

import {
generateUser,
} from '../../../../helpers/api-integration/v3';
describe('payments - amazon - #checkout', () => {
let endpoint = '/payments/amazon/checkout';
let user;
beforeEach(async () => {
user = await generateUser();
});
it('verifies credentials', async (done) => {
try {
await user.post(endpoint);
} catch (e) {
expect(e.error).to.eql('BadRequest');
expect(e.message.type).to.eql('InvalidParameterValue');
done();
}
});
});