mirror of
https://github.com/openclaw/openclaw.git
synced 2026-06-24 16:19:35 +00:00
16 lines
505 B
TypeScript
16 lines
505 B
TypeScript
// Normalization Core tests cover string coerce behavior.
|
|
import { describe, expect, it } from "vitest";
|
|
import { normalizeStringifiedEntries } from "./string-coerce.js";
|
|
|
|
describe("normalization-core/string-coerce", () => {
|
|
it("normalizes primitive stringified entries", () => {
|
|
expect(normalizeStringifiedEntries([" a ", 42, true, 0n, "", " ", null, {}])).toEqual([
|
|
"a",
|
|
"42",
|
|
"true",
|
|
"0",
|
|
]);
|
|
expect(normalizeStringifiedEntries(undefined)).toEqual([]);
|
|
});
|
|
});
|