mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
working on promisifying amazonPayments
This commit is contained in:
24
test/api/v3/unit/libs/amazonPayments.test.js
Normal file
24
test/api/v3/unit/libs/amazonPayments.test.js
Normal file
@@ -0,0 +1,24 @@
|
||||
import * as amz from '../../../../../website/src/libs/api-v3/amazonPayments';
|
||||
|
||||
describe.only('amazonPayments', () => {
|
||||
|
||||
beforeEach(() => {
|
||||
});
|
||||
|
||||
describe('#getTokenInfo', () => {
|
||||
it('validates access_token parameter', async (done) => {
|
||||
try {
|
||||
let result = await amz.getTokenInfo();
|
||||
} catch (e) {
|
||||
expect(e.type).to.eql('invalid_request');
|
||||
done();
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
describe('#createOrderReferenceId', () => {
|
||||
it('is sane', () => {
|
||||
expect(false).to.eql(true); // @TODO
|
||||
});
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user