File tree 1 file changed +0
-10
lines changed
1 file changed +0
-10
lines changed Original file line number Diff line number Diff line change @@ -4,17 +4,11 @@ describe('collectDefaultMetrics', () => {
4
4
const register = require ( '../index' ) . register ;
5
5
const Registry = require ( '../index' ) . Registry ;
6
6
const collectDefaultMetrics = require ( '../index' ) . collectDefaultMetrics ;
7
- let platform ;
8
7
let cpuUsage ;
9
8
10
9
beforeAll ( ( ) => {
11
- platform = process . platform ;
12
10
cpuUsage = process . cpuUsage ;
13
11
14
- Object . defineProperty ( process , 'platform' , {
15
- value : 'my-bogus-platform' ,
16
- } ) ;
17
-
18
12
if ( cpuUsage ) {
19
13
Object . defineProperty ( process , 'cpuUsage' , {
20
14
value ( ) {
@@ -31,10 +25,6 @@ describe('collectDefaultMetrics', () => {
31
25
} ) ;
32
26
33
27
afterAll ( ( ) => {
34
- Object . defineProperty ( process , 'platform' , {
35
- value : platform ,
36
- } ) ;
37
-
38
28
if ( cpuUsage ) {
39
29
Object . defineProperty ( process , 'cpuUsage' , {
40
30
value : cpuUsage ,
You can’t perform that action at this time.
0 commit comments