PromucFlow_constructor/app/client/src/components/propertyControls/index.test.ts

11 lines
312 B
TypeScript
Raw Normal View History

import { getPropertyControlTypes } from "./index";
import _ from "lodash";
const types = getPropertyControlTypes();
it("Checks for uniqueness of control types", () => {
const result = Object.keys(getPropertyControlTypes());
const output = _.uniq(result);
expect(types.length).toEqual(output.length);
});