Files
typemap/test/options.ts
glm-5.1 3b4dd4f1d1 Fork @sinclair/typemap to @alkdev/typemap with @alkdev/typebox backend
- Rename package to @alkdev/typemap, update peerDeps to @alkdev/typebox
- Replace all @sinclair/typebox imports with @alkdev/typebox
- Replace @sinclair/hammer build system with standalone build.mjs
- Remove upstream-only files (.github, .vscode, design/, typemap.png)
- Update readme with fork notice and new package names
- Add fork copyright to license
2026-04-23 15:36:51 +00:00

18 lines
494 B
TypeScript

import { Assert } from './assert'
import { TypeBox, Valibot, Zod } from '@alkdev/typemap'
describe('SyntaxOptions', () => {
it('Should map Options (Zod)', () => {
const A = TypeBox('string', { minLength: 10 })
const B = Zod(A)
const C = TypeBox(B)
Assert.IsEqual(C.minLength, 10)
})
it('Should map Options (Valibot)', () => {
const A = TypeBox('string', { minLength: 10 })
const B = Valibot(A)
const C = TypeBox(B)
Assert.IsEqual(C.minLength, 10)
})
})