mirror of
https://github.com/rgrgogu/new_starr.git
synced 2026-09-27 00:12:54 +08:00
client and some admin new
Signed-off-by: Kenneth Obsequio <k80308392@gmail.com>
This commit is contained in:
@@ -22,6 +22,10 @@ jest.mock('../../models/courses/courses.mdl', () => ({ Course: {} }));
|
||||
jest.mock('../../services/payment.service', () => ({ captureOrder: jest.fn() }));
|
||||
jest.mock('../../data/notifications.data', () => ({ NOTIFICATION_REGISTRY: {} }));
|
||||
jest.mock('../../models/tiers/tier.associations', () => ({}));
|
||||
// captureOrder now snapshots the plan's bundle into user_tier_grants on every
|
||||
// successful capture (Tier Plans v2 item-specific entitlement) — mocked out
|
||||
// here since these tests only pin the payment-status gating behavior.
|
||||
jest.mock('../../services/tierGrants.service', () => ({ snapshotPlanGrants: jest.fn() }));
|
||||
|
||||
const mdl_UserTiers = require('../../models/tiers/user_tiers.mdl');
|
||||
const mdl_Payments = require('../../models/tiers/payments.mdl');
|
||||
|
||||
Reference in New Issue
Block a user