From 8a45b85dbd4cdda25b7fb278e2863bdc4d298c53 Mon Sep 17 00:00:00 2001 From: Rongjian Zhang Date: Wed, 12 May 2021 22:53:04 +0800 Subject: [PATCH] test: improve coverage of lib/os.js PR-URL: https://github.com/nodejs/node/pull/38653 Refs: https://coverage.nodejs.org/coverage-52e4fb5b23157222/lib/os.js.html#L96 Reviewed-By: Darshan Sen Reviewed-By: Antoine du Hamel Reviewed-By: Anna Henningsen Reviewed-By: James M Snell Reviewed-By: Rich Trott Reviewed-By: Colin Ihrig Reviewed-By: Luigi Pinca Reviewed-By: Michael Dawson --- test/parallel/test-os.js | 1 + 1 file changed, 1 insertion(+) diff --git a/test/parallel/test-os.js b/test/parallel/test-os.js index 5ee0fb9ca8dadb..6a5b43368249db 100644 --- a/test/parallel/test-os.js +++ b/test/parallel/test-os.js @@ -247,6 +247,7 @@ assert.strictEqual(`${os.endianness}`, os.endianness()); assert.strictEqual(`${os.tmpdir}`, os.tmpdir()); assert.strictEqual(`${os.arch}`, os.arch()); assert.strictEqual(`${os.platform}`, os.platform()); +assert.strictEqual(`${os.version}`, os.version()); assert.strictEqual(+os.totalmem, os.totalmem());