This repository has been archived on 2026-03-28. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
StasisWarden-Legacy/node_modules/structural/test/any.ts
T

19 lines
372 B
TypeScript

import * as t from "..";
test("accepts anything", () => {
t.any.assert(5);
t.any.assert("five");
t.any.assert({});
});
test("converts to typescript", () => {
expect(t.toTypescript(t.any)).toEqual("any");
});
test("converts to JSON schema", () => {
expect(t.toJSONSchema("any", t.any)).toEqual({
$schema: t.JSON_SCHEMA_VERSION,
title: "any",
});
});