Passed
Pull Request — master (#57)
by Claudio
13:59 queued 02:30
created

jest/integration/formextensions.test.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 23
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 17
c 0
b 0
f 0
dl 0
loc 23
rs 10
mnd 0
bc 0
fnc 2
bpm 0
cpm 1
noi 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
            feature: null,
18
            code: 'akeneo-attribute-select-filter'
19
        };
20
21
        expect(formExtensions.extensions).toContainEqual(expected);
22
    });
23
});
24