Passed
Pull Request — master (#54)
by Claudio
14:42 queued 09:12
created

jest/integration/formextensions.test.js   A

Complexity

Total Complexity 2
Complexity/F 1

Size

Lines of Code 22
Function Count 2

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 2
eloc 16
dl 0
loc 22
rs 10
c 0
b 0
f 0
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
            code: 'akeneo-attribute-select-filter'
18
        };
19
20
        expect(formExtensions.extensions).toContainEqual(expected);
21
    });
22
});
23