惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

D
Docker
B
Blog RSS Feed
Microsoft Security Blog
Microsoft Security Blog
Y
Y Combinator Blog
N
Netflix TechBlog - Medium
M
MIT News - Artificial intelligence
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
B
Blog
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
C
Check Point Blog
The GitHub Blog
The GitHub Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
P
Proofpoint News Feed
Martin Fowler
Martin Fowler
大猫的无限游戏
大猫的无限游戏
GbyAI
GbyAI
博客园_首页
A
About on SuperTechFans
Blog — PlanetScale
Blog — PlanetScale
人人都是产品经理
人人都是产品经理
T
Tailwind CSS Blog
aimingoo的专栏
aimingoo的专栏
T
The Blog of Author Tim Ferriss
The Cloudflare Blog

Recent Commits to openclaw:main

test: merge chat side-result checks · openclaw/openclaw@ddd2c2a test: merge cron history checks · openclaw/openclaw@f7eb746 test: merge responsive navigation shell checks · openclaw/openclaw@c2e4b47 docs(changelog): add codex oauth fixes · openclaw/openclaw@628e6cd test: merge navigation routing cases · openclaw/openclaw@5d8cecb Tests: mock channel registry bundled fallback · openclaw/openclaw@2b08233 Secrets: avoid broad web search discovery for single plugin config · openclaw/openclaw@a464f59 test: merge config view browser checks · openclaw/openclaw@20cf511 fix(status): align oauth health with runtime · openclaw/openclaw@eed7116 feat: add macOS screen snapshots for monitor preview (#67954) thanks … · openclaw/openclaw@f377db1 fix: report shared auth scopes in hello-ok (#67810) thanks @BunsDev · openclaw/openclaw@0b6c39b Auto-reply: avoid eager bundled route fallback · openclaw/openclaw@3ea1bf4 Tests: narrow session binding contract setup · openclaw/openclaw@54e4e16 fix(macOS): enable undo/redo in webchat composer text input (#34962) · openclaw/openclaw@00951dc Tests: speed up channel setup promotion · openclaw/openclaw@82b529a Docs: refresh agent instructions · openclaw/openclaw@5775fe2 fix(auth): serialize OAuth refresh across agents to fix #26322 (#67876) · openclaw/openclaw@8e79080 test: allow ollama public surface boundary test · openclaw/openclaw@7d4f1a6 Docs: add test performance guardrails · openclaw/openclaw@89706d3 Tests: restore context-engine usage proof · openclaw/openclaw@e4c4f95 Tests: slim context engine runtime coverage · openclaw/openclaw@74c198f ci: retry failed custom checkouts · openclaw/openclaw@0ee5baf test: trim duplicate provider auth onboarding cases · openclaw/openclaw@1ffc02e matrix: fix sessions_spawn --thread subagent session spawning (#67643) · openclaw/openclaw@1ce2596 test: reduce auth choice fixture churn · openclaw/openclaw@857b9cd test: mock health status config boundaries · openclaw/openclaw@9d5ab4a test: mock onboard config io boundary · openclaw/openclaw@299694d test: mock legacy state plugin boundaries · openclaw/openclaw@2713089 test: mock channel install boundaries · openclaw/openclaw@b945248 test: mock doctor preview channel boundaries · openclaw/openclaw@b1a3ad4
test: guard extension provider mock calls · openclaw/open...
steipete · 2026-05-12 · via Recent Commits to openclaw:main
Original file line numberDiff line numberDiff line change

@@ -64,7 +64,7 @@ describe("Google Meet OAuth", () => {

6464

expect(tokens.tokenType).toBe("Bearer");

6565

expect(Number.isFinite(tokens.expiresAt)).toBe(true);

6666

expect(tokens.expiresAt).toBeGreaterThan(Date.now());

67-

const body = fetchMock.mock.calls[0]?.[1]?.body;

67+

const body = fetchMock.mock.calls.at(0)?.[1]?.body;

6868

expect(body).toBeInstanceOf(URLSearchParams);

6969

const params = body as URLSearchParams;

7070

expect(params.get("grant_type")).toBe("refresh_token");

Original file line numberDiff line numberDiff line change

@@ -52,7 +52,7 @@ function fetchRequest(fetchMock: ReturnType<typeof vi.fn>): {

5252

method?: string;

5353

url: string;

5454

} {

55-

const [url, init] = fetchMock.mock.calls[0] as [string, RequestInit | undefined];

55+

const [url, init] = fetchMock.mock.calls.at(0) as [string, RequestInit | undefined];

5656

expect(typeof url).toBe("string");

5757

if (!init) {

5858

throw new Error("Expected fetch init");

Original file line numberDiff line numberDiff line change

@@ -287,7 +287,7 @@ describe("google video generation provider", () => {

287287

durationSeconds: 3,

288288

});

289289
290-

const [{ downloadPath }] = downloadMock.mock.calls[0] ?? [{}];

290+

const [{ downloadPath }] = downloadMock.mock.calls.at(0) ?? [{}];

291291

const downloadBaseName = path.basename(String(downloadPath));

292292

expect(downloadBaseName).toContain("video-1.mp4");

293293

expect(downloadBaseName).toMatch(/\.part$/);

Original file line numberDiff line numberDiff line change

@@ -119,7 +119,7 @@ describe("gradium tts diagnostics", () => {

119119

});

120120
121121

expect(fetchMock).toHaveBeenCalledOnce();

122-

const [url, init] = fetchMock.mock.calls[0] as [string, RequestInit];

122+

const [url, init] = fetchMock.mock.calls.at(0) as [string, RequestInit];

123123

expect(url).toBe("https://api.gradium.ai/api/post/speech/tts");

124124

expect(init.method).toBe("POST");

125125

const headers = new Headers(init.headers);

Original file line numberDiff line numberDiff line change

@@ -203,7 +203,7 @@ describe("imessage message actions", () => {

203203

).rejects.toThrow(/imsg private API bridge/);

204204
205205

expect(loggerMock.warn).toHaveBeenCalledTimes(1);

206-

const warnArg = String(loggerMock.warn.mock.calls[0][0]);

206+

const warnArg = String(loggerMock.warn.mock.calls.at(0)?.[0]);

207207

expect(warnArg).toMatch(/iMessage react blocked: private API bridge unavailable/);

208208

expect(warnArg).toMatch(/imsg launch/);

209209

expect(runtimeMock.sendReaction).not.toHaveBeenCalled();

Original file line numberDiff line numberDiff line change

@@ -196,7 +196,7 @@ describe("irc inbound behavior", () => {

196196
197197

const assembledRequest = (

198198

coreRuntime.channel.turn.runAssembled as unknown as { mock: { calls: unknown[][] } }

199-

).mock.calls[0]?.[0] as { replyPipeline?: unknown } | undefined;

199+

).mock.calls.at(0)?.[0] as { replyPipeline?: unknown } | undefined;

200200

expect(assembledRequest?.replyPipeline).toEqual({});

201201

});

202202

});

Original file line numberDiff line numberDiff line change

@@ -51,7 +51,7 @@ type WebhookRegistration = {

5151

};

5252
5353

function requireWebhookRegistration(): WebhookRegistration {

54-

const registration = registerWebhookTargetWithPluginRouteMock.mock.calls[0]?.[0] as

54+

const registration = registerWebhookTargetWithPluginRouteMock.mock.calls.at(0)?.[0] as

5555

| WebhookRegistration

5656

| undefined;

5757

if (!registration) {

Original file line numberDiff line numberDiff line change

@@ -418,7 +418,7 @@ describe("LINE send helpers", () => {

418418

);

419419
420420

expect(pushMessageMock).toHaveBeenCalledTimes(1);

421-

const firstCall = pushMessageMock.mock.calls[0] as [

421+

const firstCall = pushMessageMock.mock.calls.at(0) as [

422422

{ messages: Array<{ quickReply?: { items: unknown[] } }> },

423423

];

424424

expect(firstCall[0].messages[0].quickReply?.items).toHaveLength(13);

Original file line numberDiff line numberDiff line change

@@ -26,7 +26,7 @@ describe("validateLineSignature", () => {

2626

expect(validateLineSignature(body, "short", secret)).toBe(false);

2727

expect(spy).toHaveBeenCalledTimes(1);

2828
29-

const [left, right] = spy.mock.calls[0] ?? [];

29+

const [left, right] = spy.mock.calls.at(0) ?? [];

3030

expect(left).toBeInstanceOf(Buffer);

3131

expect(right).toBeInstanceOf(Buffer);

3232

expect(left?.byteLength).toBe(right?.byteLength);

Original file line numberDiff line numberDiff line change

@@ -193,7 +193,7 @@ describe("litellm image generation provider", () => {

193193

});

194194
195195

expect(mockObjectArg(postJsonRequestMock).url).toBe("http://localhost:4000/images/edits");

196-

const call = postJsonRequestMock.mock.calls[0][0] as { body: { images: unknown[] } };

196+

const call = postJsonRequestMock.mock.calls.at(0)?.[0] as { body: { images: unknown[] } };

197197

expect(call.body.images).toHaveLength(1);

198198

});

199199