Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Java/Openclaw/extensions/zalouser/src/   (Openclaw AI Version 22©)  Datei vom 26.3.2026 mit Größe 773 B image not shown  

Quelle  zca-client.test.ts

  Sprache: JAVA
 

import { describe, expect, it, vi } from "vitest";

describe("zca-client runtime loading", () => {
  it("does not import zca-js until a session is created", async () => {
    vi.clearAllMocks();
    const runtimeFactory = vi.fn(() => ({
      Zalo: class MockZalo {
        constructor(public readonly options?: { logging?: boolean; selfListen?: boolean }) {}
      },
    }));

    vi.doMock("zca-js", runtimeFactory);

    const zcaClient = await import("./zca-client.js");
    expect(runtimeFactory).not.toHaveBeenCalled();

    const client = await zcaClient.createZalo({ logging: false, selfListen: true });

    expect(runtimeFactory).toHaveBeenCalledTimes(1);
    expect(client).toMatchObject({
      options: { logging: false, selfListen: true },
    });
  });
});

Messung V0.5 in Prozent
C=94 H=93 G=93

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-05) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.