From 152bfa52bda88a62515ad99be7062bdf18c3b95f Mon Sep 17 00:00:00 2001 From: Artur Arseniev Date: Sat, 23 Apr 2022 08:18:52 +0200 Subject: [PATCH] Update property factory tests --- .../style_manager/model/PropertyFactory.js | 47 +------------------ 1 file changed, 1 insertion(+), 46 deletions(-) diff --git a/test/specs/style_manager/model/PropertyFactory.js b/test/specs/style_manager/model/PropertyFactory.js index b16026941..186400ff1 100644 --- a/test/specs/style_manager/model/PropertyFactory.js +++ b/test/specs/style_manager/model/PropertyFactory.js @@ -721,52 +721,7 @@ describe('PropertyFactory', () => { }); test('Build transform', () => { - var res = { - property: 'transform', - type: 'composite', - properties: [ - { - property: 'transform-rotate-x', - type: 'number', - units: obj.unitsAngle, - default: '0', - functionName: 'rotateX', - }, - { - property: 'transform-rotate-y', - type: 'number', - units: obj.unitsAngle, - default: '0', - functionName: 'rotateY', - }, - { - property: 'transform-rotate-z', - type: 'number', - units: obj.unitsAngle, - default: '0', - functionName: 'rotateZ', - }, - { - property: 'transform-scale-x', - type: 'number', - default: '1', - functionName: 'scaleX', - }, - { - property: 'transform-scale-y', - type: 'number', - default: '1', - functionName: 'scaleY', - }, - { - property: 'transform-scale-z', - type: 'number', - default: '1', - functionName: 'scaleZ', - }, - ], - }; - expect(obj.build('transform')).toEqual([res]); + expect(obj.build('transform')[0].type).toEqual('stack'); }); test('Build cursor', () => {