From 0f85a85e945efd7344fa4f7d58f0fb9ea966d998 Mon Sep 17 00:00:00 2001 From: Mintu Date: Mon, 25 Dec 2023 20:55:52 +0530 Subject: [PATCH] Added test for ConstantConstrainer --- .../python/constrainer/ConstantConstrainer.spec.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 test/generators/python/constrainer/ConstantConstrainer.spec.ts diff --git a/test/generators/python/constrainer/ConstantConstrainer.spec.ts b/test/generators/python/constrainer/ConstantConstrainer.spec.ts new file mode 100644 index 0000000000..1a8cebce2a --- /dev/null +++ b/test/generators/python/constrainer/ConstantConstrainer.spec.ts @@ -0,0 +1,10 @@ +import { defaultConstantConstraints } from '../../../../src/generators/python/constrainer/ConstantConstrainer'; + +describe('defaultConstantConstraints', () => { + it('should return undefined', () => { + const constraints = defaultConstantConstraints(); + const context = { constrainedMetaModel: {} as any }; + const result = constraints(context); + expect(result).toBeUndefined(); + }); +});