fix: add missing dependencies in TripsService constructor for tests
This commit is contained in:
@@ -57,6 +57,8 @@ function build(opts: {
|
||||
coupons,
|
||||
{} as any, // referrals
|
||||
distances,
|
||||
{} as any, // surge
|
||||
{} as any, // tierCalc
|
||||
);
|
||||
// `tariffDef` يقرأ التعرفة الفعّالة — نثبّتها لأن المقصود هنا حساب المال.
|
||||
(svc as any).tariffDef = jest.fn().mockResolvedValue(opts.def ?? DEF);
|
||||
|
||||
Reference in New Issue
Block a user