Skip to content

Commit

Permalink
Added test for ConstantConstrainer
Browse files Browse the repository at this point in the history
  • Loading branch information
Gmin2 committed Dec 25, 2023
1 parent ff631b3 commit 0f85a85
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions test/generators/python/constrainer/ConstantConstrainer.spec.ts
Original file line number Diff line number Diff line change
@@ -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();
});
});

0 comments on commit 0f85a85

Please sign in to comment.