Total Complexity | 2 |
Complexity/F | 1 |
Lines of Code | 22 |
Function Count | 2 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 0 |
1 | describe('Form Extensions', function() { |
||
2 | it('table attribute overrides akeneo-attribute-select-filter', function() { |
||
3 | const formExtensions = require('../../tests/public/js/extensions.json'); |
||
4 | |||
5 | const expected = { |
||
6 | module: 'pim/filter/attribute/select', |
||
7 | parent: null, |
||
8 | targetZone: 'self', |
||
9 | zones: [], |
||
10 | aclResourceId: null, |
||
11 | config: { |
||
12 | url: 'pim_ui_ajaxentity_list', |
||
13 | entityClass: 'Flagbit\\Bundle\\TableAttributeBundle\\Entity\\AttributeOption', |
||
14 | operators: [ 'IN', 'EMPTY', 'NOT EMPTY' ] |
||
15 | }, |
||
16 | position: 100, |
||
17 | code: 'akeneo-attribute-select-filter' |
||
18 | }; |
||
19 | |||
20 | expect(formExtensions.extensions).toContainEqual(expected); |
||
21 | }); |
||
22 | }); |
||
23 |