|
|
|
@ -187,6 +187,16 @@ describe('StyleManager properties logic', () => { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
test('getStyleFromLayers detached', () => { |
|
|
|
compTypeProp.set('detached', true); |
|
|
|
expect(compTypeProp.getStyleFromLayers()).toEqual({ |
|
|
|
[propTest]: '', |
|
|
|
[propATest]: 'valueA-1, valueA-2', |
|
|
|
[propBTest]: 'valueB-1, valueB-2', |
|
|
|
[propCTest]: 'valueC-1-ext, valueC-2-ext', |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
test('Layers has the right values', () => { |
|
|
|
expect(compTypeProp.getLayer(0).getValues()).toEqual({ |
|
|
|
[propATest]: 'valueA-1', |
|
|
|
|