Skip to content

Commit

Permalink
test: fix test for utcTime
Browse files Browse the repository at this point in the history
  • Loading branch information
microshine committed Jun 13, 2024
1 parent c578fc7 commit 2a71024
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/test.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,8 @@ context("PKCS11", () => {
assert.deepEqual(hardwareVersionKeys, ["major", "minor"]);
const firmwareVersionKeys = Object.keys(info.firmwareVersion);
assert.deepEqual(firmwareVersionKeys, ["major", "minor"]);
assert.ok(info.utcTime instanceof Date);
assert.ok(typeof info.utcTime == "string");
assert.strictEqual(info.utcTime.length, 16);
assert.ok(typeof info.totalPublicMemory === 'bigint');
assert.ok(typeof info.freePublicMemory === 'bigint');
assert.ok(typeof info.totalPrivateMemory === 'bigint');
Expand Down

0 comments on commit 2a71024

Please sign in to comment.