Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/JAVA/Openclaw/src/gateway/   (Openclaw AI Version 22©)  Datei vom 26.3.2026 mit Größe 7 kB image not shown  

Quelle  plain-object.test.ts   Sprache: unbekannt

 
import { describe, expect, it } from "vitest";
import { isPlainObject } from "./plain-object.js";

describe("isPlainObject", () => {
  it.each([
    {},
    { a: 1 },
    Object.create(null),
    new (class X {
      readonly marker = true;
    })(),
    { [Symbol.toStringTag]: "Object" },
  ])("accepts object-tag values: %j", (value) => {
    expect(isPlainObject(value)).toBe(true);
  });

  it.each([
    null,
    [],
    new Date(),
    /re/,
    "x",
    42,
    () => null,
    new Map(),
    { [Symbol.toStringTag]: "Array" },
  ])("rejects non-plain values: %j", (value) => {
    expect(isPlainObject(value)).toBe(false);
  });
});

Messung V0.5 in Prozent
C=100 H=100 G=100

[zur Elbe Produktseite wechseln0.12QuellennavigatorsAnalyse erneut starten2026-06-09]