2024-02-29 11:34:48 +11:00
|
|
|
import { payments } from '../../src/index.js';
|
|
|
|
|
|
|
|
|
|
async function example() {
|
|
|
|
|
const response = await payments.create_user_subscription({
|
2024-10-11 12:45:04 -04:00
|
|
|
body: { modeling_app: 'free', pay_annually: true },
|
2024-02-29 11:34:48 +11:00
|
|
|
});
|
|
|
|
|
if ('error_code' in response) throw response;
|
|
|
|
|
|
|
|
|
|
return response;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
describe('Testing payments.create_user_subscription', () => {
|
|
|
|
|
it('should be truthy or throw', async () => {
|
|
|
|
|
expect(await example()).toBeTruthy();
|
|
|
|
|
});
|
|
|
|
|
});
|