From d4471e06e8424035c214369d8a4480bb4c9e4f69 Mon Sep 17 00:00:00 2001 From: Jeremiah Senkpiel Date: Wed, 1 Nov 2017 11:23:47 -0700 Subject: [PATCH] test: update process-release for Node 8 Carbon PR-URL: https://github.com/nodejs/node/pull/16656 Reviewed-By: Myles Borins Reviewed-By: Colin Ihrig Reviewed-By: Gireesh Punathil Reviewed-By: Anatoli Papirovski --- test/parallel/test-process-release.js | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/test/parallel/test-process-release.js b/test/parallel/test-process-release.js index 5d5228af72b599..8b6bca9141beed 100644 --- a/test/parallel/test-process-release.js +++ b/test/parallel/test-process-release.js @@ -1,16 +1,20 @@ 'use strict'; + require('../common'); + const assert = require('assert'); const versionParts = process.versions.node.split('.'); -assert.equal(process.release.name, 'node'); +assert.strictEqual(process.release.name, 'node'); // it's expected that future LTS release lines will have additional // branches in here if (versionParts[0] === '4' && versionParts[1] >= 2) { - assert.equal(process.release.lts, 'Argon'); + assert.strictEqual(process.release.lts, 'Argon'); } else if (versionParts[0] === '6' && versionParts[1] >= 9) { - assert.equal(process.release.lts, 'Boron'); + assert.strictEqual(process.release.lts, 'Boron'); +} else if (versionParts[0] === '8' && versionParts[1] >= 9) { + assert.strictEqual(process.release.lts, 'Carbon'); } else { assert.strictEqual(process.release.lts, undefined); }