refactor(data): replace schema classes with readonly models
This commit is contained in:
@@ -37,7 +37,7 @@ describe("PaymentApi", () => {
|
||||
const response = await new PaymentApi().getTipPlans();
|
||||
|
||||
expect(httpClientMock).toHaveBeenCalledWith("/api/payment/tip-plans");
|
||||
expect(response.toJson()).toEqual({
|
||||
expect(response).toEqual({
|
||||
plans: [
|
||||
{
|
||||
planId: "tip_coffee_usd_19_99",
|
||||
|
||||
Reference in New Issue
Block a user