Skip to content

Commit 8cbf828

Browse files
authored
Some minor cleaning up.
2 parents c8d1318 + c68ced0 commit 8cbf828

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

tests/bindings/javascript/version.test.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ const libopencor = await libOpenCOR();
2020

2121
describe("Version tests", () => {
2222
test("libOpenCOR", () => {
23-
const version_major = 0;
24-
const version_patch = 0;
23+
const versionMajor = 0;
24+
const versionPatch = 0;
2525

2626
const now = new Date();
2727
const year = now.getFullYear();
@@ -30,9 +30,9 @@ describe("Version tests", () => {
3030

3131
let version = BigInt(0);
3232
let number = BigInt(
33-
10000000000 * version_major +
33+
10000000000 * versionMajor +
3434
100 * (10000 * year + 100 * month + day) +
35-
version_patch,
35+
versionPatch,
3636
);
3737
let i = BigInt(0);
3838

@@ -47,7 +47,7 @@ describe("Version tests", () => {
4747

4848
expect(libopencor.version()).toBe(version);
4949
expect(libopencor.versionString()).toBe(
50-
`${version_major}.${year}${String(month).padStart(2, "0")}${String(day).padStart(2, "0")}.${version_patch}`,
50+
`${versionMajor}.${year}${String(month).padStart(2, "0")}${String(day).padStart(2, "0")}.${versionPatch}`,
5151
);
5252
});
5353

0 commit comments

Comments
 (0)