mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-10 00:33:31 +00:00
test(gateway): use lightweight clears in push handler setup
This commit is contained in:
@@ -36,10 +36,10 @@ function createInvokeParams(params: Record<string, unknown>) {
|
|||||||
|
|
||||||
describe("push.test handler", () => {
|
describe("push.test handler", () => {
|
||||||
beforeEach(() => {
|
beforeEach(() => {
|
||||||
vi.mocked(loadApnsRegistration).mockReset();
|
vi.mocked(loadApnsRegistration).mockClear();
|
||||||
vi.mocked(normalizeApnsEnvironment).mockReset();
|
vi.mocked(normalizeApnsEnvironment).mockClear();
|
||||||
vi.mocked(resolveApnsAuthConfigFromEnv).mockReset();
|
vi.mocked(resolveApnsAuthConfigFromEnv).mockClear();
|
||||||
vi.mocked(sendApnsAlert).mockReset();
|
vi.mocked(sendApnsAlert).mockClear();
|
||||||
});
|
});
|
||||||
|
|
||||||
it("rejects invalid params", async () => {
|
it("rejects invalid params", async () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user