import { weightAndBalance as offsets } from '../../../src/lib/offsetList/plane/wb'; import { replaceOffsetExpressionValue } from '../../../src/lib/applyConversion'; describe('offset - plane/weightAndBalance', () => { const offsetsTestCases = [ ]; describe('offsets list', () => { it('should have required properties', () => { expect(offsets).toMatchSnapshot(); }); }); offsetsTestCases.forEach(testedOffset => { describe(testedOffset.name, () => { it('should convert data properly', () => { const convertExpression = replaceOffsetExpressionValue(offsets[testedOffset.name], testedOffset.value); // tslint:disable-next-line:no-eval expect(eval(convertExpression)).toEqual(testedOffset.expectedResult); }); }); }); });