refactor(payment): remove vip status flow
This commit is contained in:
@@ -6,7 +6,6 @@ import {
|
||||
type PayChannel,
|
||||
PaymentOrderStatusResponse,
|
||||
PaymentPlansResponse,
|
||||
PaymentVipStatusResponse,
|
||||
} from "@/data/dto/payment";
|
||||
import { paymentMachine } from "@/stores/payment/payment-machine";
|
||||
|
||||
@@ -94,12 +93,6 @@ function createTestPaymentMachine(
|
||||
planId: "vip_monthly",
|
||||
}),
|
||||
),
|
||||
loadVipStatus: fromPromise(async () =>
|
||||
PaymentVipStatusResponse.from({
|
||||
isVip: true,
|
||||
vipExpiresAt: "2026-07-25T00:00:00.000Z",
|
||||
}),
|
||||
),
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -163,7 +156,6 @@ describe("paymentMachine", () => {
|
||||
expect(context.currentOrderId).toBe("pay_test_001");
|
||||
expect(context.orderStatus).toBe("paid");
|
||||
expect(context.launchNonce).toBe(1);
|
||||
expect(context.vipStatus?.isVip).toBe(true);
|
||||
|
||||
actor.stop();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user