Passed
Push — trunk ( 58a8b0...e62b2a )
by Christian
12:52 queued 13s
created

src/Administration/Resources/app/administration/src/index.spec.js   A

Complexity

Total Complexity 4
Complexity/F 1

Size

Lines of Code 12
Function Count 4

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
wmc 4
eloc 6
mnd 0
bc 0
fnc 4
dl 0
loc 12
rs 10
bpm 0
cpm 1
noi 2
c 0
b 0
f 0
1
/**
2
 * @package admin
3
 */
4
5
import 'src/index';
6
7
jest.mock('src/core/shopware', () => jest.fn());
0 ignored issues
show
Bug introduced by
The variable jest seems to be never declared. If this is a global, consider adding a /** global: jest */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
8
jest.mock('src/app/main', () => jest.fn());
0 ignored issues
show
Bug introduced by
The variable jest seems to be never declared. If this is a global, consider adding a /** global: jest */ comment.

This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.

To learn more about declaring variables in Javascript, see the MDN.

Loading history...
9
10
describe('src/index', () => {
11
    it('should import the core and the app', () => {
12
        /**
13
         * Direct imports can't be tested. Only exported mocked values can be checked
14
         */
15
    });
16
});
17