Completed
Push — master ( 9e2405...901d99 )
by Arthur
37s
created

__mocks__/browserMock.js   A

Size

Lines of Code 15

Duplication

Duplicated Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
nc 1
dl 0
loc 15
rs 10
noi 4

1 Function

Rating   Name   Duplication   Size   Complexity  
A browserMock.js ➔ ??? 0 3 1
1
Object.defineProperty(document, 'CSVLink', {
2
    // value: document.createElement('a'),
3
    createElement: (val) => {
4
        return document.createElement(val)
5
    }
6
});
7
8
const constantDate = new Date('2018-03-23T04:41:20')
0 ignored issues
show
Unused Code introduced by
The constant constantDate seems to be never used. Consider removing it.
Loading history...
9
10
Date = class extends Date {
0 ignored issues
show
Comprehensibility introduced by
You are shadowing the built-in type Date. This makes code hard to read, consider using a different name.
Loading history...
11
    constructor() {
12
        super();
13
        return constantDate
0 ignored issues
show
Bug introduced by
The variable constantDate seems to be never declared. If this is a global, consider adding a /** global: constantDate */ 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...
Bug introduced by
The constructor does not have a meaningful return value. Are you sure this is correct?
Loading history...
14
    }
15
}
16