From d1b2511ec9dbb11ef3c687306ea67997d1bf14b9 Mon Sep 17 00:00:00 2001 From: Diogo Resende Date: Tue, 21 Nov 2023 14:09:54 +0000 Subject: [PATCH] test: rolls back previous change, not needed anymore --- test/unit/test-ConnectionConfig.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/test/unit/test-ConnectionConfig.js b/test/unit/test-ConnectionConfig.js index d941f4051..67e573468 100644 --- a/test/unit/test-ConnectionConfig.js +++ b/test/unit/test-ConnectionConfig.js @@ -3,7 +3,6 @@ var Crypto = require('crypto'); var test = require('utest'); var assert = require('assert'); var ConnectionConfig = common.ConnectionConfig; -var usesWhatwgUrl = (typeof URL == 'function' && typeof URL.prototype == 'object'); test('ConnectionConfig#Constructor', { 'takes user,pw,host,port,db from url string': function() { @@ -24,7 +23,7 @@ test('ConnectionConfig#Constructor', { assert.equal(config.host, 'myhost'); assert.equal(config.port, 3333); assert.equal(config.user, 'myuser'); - assert.equal(config.password, usesWhatwgUrl ? 'my%3Apass' : 'my:pass'); + assert.equal(config.password, 'my:pass'); assert.equal(config.database, 'mydb'); },