Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
22 lines
837 B
Text
22 lines
837 B
Text
import { expect, test } from "vitest";
|
|
import { parsedType } from "../../../locales/en.js";
|
|
|
|
test("parsedType", () => {
|
|
expect(parsedType("string")).toBe("string");
|
|
expect(parsedType(1)).toBe("number");
|
|
expect(parsedType(true)).toBe("boolean");
|
|
expect(parsedType(null)).toBe("null");
|
|
expect(parsedType(undefined)).toBe("undefined");
|
|
expect(parsedType([])).toBe("array");
|
|
expect(parsedType({})).toBe("object");
|
|
expect(parsedType(new Date())).toBe("Date");
|
|
expect(parsedType(new Map())).toBe("Map");
|
|
expect(parsedType(new Set())).toBe("Set");
|
|
expect(parsedType(new Error())).toBe("Error");
|
|
|
|
const nullPrototype = Object.create(null);
|
|
expect(parsedType(nullPrototype)).toBe("object");
|
|
|
|
const doubleNullPrototype = Object.create(Object.create(null));
|
|
expect(parsedType(doubleNullPrototype)).toBe("object");
|
|
});
|