mirror of
https://github.com/Effect-TS/effect.git
synced 2026-11-22 05:03:05 +08:00
25 lines
567 B
TypeScript
25 lines
567 B
TypeScript
import * as UnknownObject from "@fp-ts/schema/data/UnknownObject"
|
|
import * as P from "@fp-ts/schema/Pretty"
|
|
import * as Util from "@fp-ts/schema/test/util"
|
|
|
|
describe("UnknownObject", () => {
|
|
const schema = UnknownObject.Schema
|
|
|
|
it("id", () => {
|
|
expect(UnknownObject.id).exist
|
|
})
|
|
|
|
it("Provider", () => {
|
|
expect(UnknownObject.Provider).exist
|
|
})
|
|
|
|
it("property tests", () => {
|
|
Util.property(schema)
|
|
})
|
|
|
|
it("Pretty", () => {
|
|
const pretty = P.prettyFor(schema)
|
|
expect(pretty.pretty({ a: [1, true] })).toEqual("{\"a\":[1,true]}")
|
|
})
|
|
})
|