n8n/packages/nodes-base/nodes/Function/Function.node.test.ts
mfsiega ea8417e29a
feat(core): Block create/update of workflows with deprecated nodes (#31360)
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-authored-by: Danny Martini <danny@n8n.io>
Co-authored-by: Emilia <100027345+sovietspaceship@users.noreply.github.com>
Co-authored-by: cubic-dev-ai[bot] <191113872+cubic-dev-ai[bot]@users.noreply.github.com>
2026-10-08 14:39:14 +00:00

9 lines
242 B
TypeScript

import { Function } from './Function.node';
describe('Function Node', () => {
it('is marked deprecated so the backend refuses new instances', () => {
const node = new Function();
expect(node.description.deprecated).toBe(true);
});
});