feat(billing): guide parents to recharge the child account
This commit is contained in:
1 parent
fe1a3775c5
commit
281e6dc151
10 files changed
+105
-14
No files matched your search
@@ -6,7 +6,7 @@ import server from '../fixtures/permanent-points-server.json';
|
||||
// an isolated SQLite database and a fake payment provider. All identities are synthetic.
|
||||
// Covers the real API's serialized decimals, timestamps, optional fields and order envelopes.
|
||||
describe('Works Square permanent-points API compatibility', () => {
|
||||
it('projects old accounts at zero and genuinely registered youth at 100, without a client gift', () => {
|
||||
it('projects balance and recharge permission from the captured pre-D01 server response without a client gift', () => {
|
||||
expect(projectBillingSummary(server.before).own_points.total_remaining).toBe('0.00');
|
||||
const youth = projectBillingSummary(server.youth);
|
||||
expect(youth.own_points.total_remaining).toBe('100.00');
|
||||
|
||||
Reference in new issue
Block a user