mirror of
https://github.com/n8n-io/n8n.git
synced 2024-11-16 01:24:05 -08:00
14 lines
259 B
TypeScript
14 lines
259 B
TypeScript
|
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));
|
||
|
});
|
||
|
});
|