UNPKG

@reech-rewards/reech

Version:

This Node package allows you to easily integrate rewards into your application using our Rewards as a Service API.

7 lines (6 loc) 287 B
const RewardsService = require('./index'); test('creates a reward successfully', async () => { const rewardsService = new RewardsService('your-api-key'); const response = await rewardsService.createReward('user123', { amount: 100 }); expect(response.success).toBe(true); });