Skip to content

Commit cb59f19

Browse files
committed
Minor name change
1 parent 45bf0bb commit cb59f19

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

tests/ClassTest.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,22 +21,22 @@ class Counter {
2121
this.valueInternal--;
2222
}
2323

24-
someOtherMathod1() {
24+
someOtherMethod1() {
2525
console.log(this.valueInternal);
2626
}
27-
someOtherMathod2() {
27+
someOtherMethod2() {
2828
console.log(this.valueInternal);
2929
}
30-
someOtherMathod3() {
30+
someOtherxcf3() {
3131
console.log(this.valueInternal);
3232
}
33-
someOtherMathod4() {
33+
someOtherMethod4() {
3434
console.log(this.valueInternal);
3535
}
36-
someOtherMathod5() {
36+
someOtherMethod5() {
3737
console.log(this.valueInternal);
3838
}
39-
someOtherMathod6() {
39+
someOtherMethod6() {
4040
console.log(this.valueInternal);
4141
}
4242
}
@@ -48,5 +48,5 @@ const instances = new Array(1000).fill({}).map(getInstance2);
4848
const time2 = process.hrtime.bigint();
4949
const mem2 = process.memoryUsage();
5050

51-
console.log(`Memory Used: ${mem2.heapUsed - mem1.heapUsed} bytes`); // Memory Used: 128528 bytes
51+
console.log(`Memory Used: ${mem2.heapUsed - mem1.heapUsed} bytes`); // Memory Used: Method bytes
5252
console.log(`Time taken: ${time2 - time1} nanoseconds`); // Time taken: 586271 nanoseconds

tests/ClosureTest.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ const getInstance = props => {
1414
valueInternal.value--;
1515
},
1616

17-
someOtherMathod1() {
17+
someOtherMethod1() {
1818
console.log(valueInternal.value);
1919
},
20-
someOtherMathod2() {
20+
someOtherMethod2() {
2121
console.log(valueInternal.value);
2222
},
23-
someOtherMathod3() {
23+
someOtherMethod3() {
2424
console.log(valueInternal.value);
2525
},
26-
someOtherMathod4() {
26+
someOtherMethod4() {
2727
console.log(valueInternal.value);
2828
},
29-
someOtherMathod5() {
29+
someOtherMethod5() {
3030
console.log(valueInternal.value);
3131
},
32-
someOtherMathod6() {
32+
someOtherMethod6() {
3333
console.log(valueInternal.value);
3434
}
3535
};

0 commit comments

Comments
 (0)