mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-19 11:01:15 +00:00
feat: Add fork of json-schema-to-zod (no-changelog) (#11228)
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
import { z } from 'zod';
|
||||
|
||||
import { parseConst } from '../../src/parsers/parse-const';
|
||||
|
||||
describe('parseConst', () => {
|
||||
test('should handle falsy constants', () => {
|
||||
expect(
|
||||
parseConst({
|
||||
const: false,
|
||||
}),
|
||||
).toMatchZod(z.literal(false));
|
||||
});
|
||||
});
|
||||
Reference in New Issue
Block a user