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