mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-12 01:31:08 +00:00
chore: enable await-thenable
This commit is contained in:
@@ -59,7 +59,6 @@
|
||||
"**/*test-support.ts"
|
||||
],
|
||||
"rules": {
|
||||
"typescript/await-thenable": "off",
|
||||
"typescript/no-base-to-string": "off",
|
||||
"typescript/no-explicit-any": "off",
|
||||
"typescript/no-floating-promises": "off",
|
||||
|
||||
@@ -65,7 +65,7 @@ describe("browser plugin", () => {
|
||||
|
||||
it("forwards per-session browser options into the tool factory", async () => {
|
||||
const { api, registerTool } = createApi();
|
||||
await registerBrowserPlugin(api);
|
||||
registerBrowserPlugin(api);
|
||||
|
||||
const tool = registerTool.mock.calls[0]?.[0];
|
||||
if (typeof tool !== "function") {
|
||||
|
||||
@@ -450,7 +450,7 @@ describe("MatrixCryptoBootstrapper", () => {
|
||||
initiatedByMe: false,
|
||||
accept: vi.fn(async () => {}),
|
||||
};
|
||||
await listener?.(verificationRequest);
|
||||
listener?.(verificationRequest);
|
||||
|
||||
expect(deps.verificationManager.trackVerificationRequest).toHaveBeenCalledWith(
|
||||
verificationRequest,
|
||||
@@ -480,7 +480,7 @@ describe("MatrixCryptoBootstrapper", () => {
|
||||
initiatedByMe: false,
|
||||
accept: vi.fn(async () => {}),
|
||||
};
|
||||
await listener?.(verificationRequest);
|
||||
listener?.(verificationRequest);
|
||||
|
||||
expect(verificationRequest.accept).not.toHaveBeenCalled();
|
||||
});
|
||||
|
||||
@@ -342,7 +342,7 @@ describe("Engine contract tests", () => {
|
||||
});
|
||||
|
||||
it("legacy compact preserves runtimeContext currentTokenCount when top-level value is absent", async () => {
|
||||
const compactRuntimeSpy = await installCompactRuntimeSpy();
|
||||
const compactRuntimeSpy = installCompactRuntimeSpy();
|
||||
const engine = new LegacyContextEngine();
|
||||
|
||||
await engine.compact({
|
||||
@@ -362,7 +362,7 @@ describe("Engine contract tests", () => {
|
||||
});
|
||||
|
||||
it("delegateCompactionToRuntime reuses the legacy runtime bridge", async () => {
|
||||
const compactRuntimeSpy = await installCompactRuntimeSpy();
|
||||
const compactRuntimeSpy = installCompactRuntimeSpy();
|
||||
const result = await delegateCompactionToRuntime({
|
||||
sessionId: "s2",
|
||||
sessionFile: "/tmp/session.json",
|
||||
|
||||
Reference in New Issue
Block a user