Skip to content

Commit 8083e59

Browse files
Copilotmotdotla
andcommitted
Remove _getRandomTip from public exports
Co-authored-by: motdotla <3848+motdotla@users.noreply.github.com>
1 parent 561504c commit 8083e59

2 files changed

Lines changed: 1 addition & 7 deletions

File tree

lib/main.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,6 @@ const DotenvModule = {
390390
configDotenv,
391391
_configVault,
392392
_parseVault,
393-
_getRandomTip,
394393
config,
395394
decrypt,
396395
parse,
@@ -400,7 +399,6 @@ const DotenvModule = {
400399
module.exports.configDotenv = DotenvModule.configDotenv
401400
module.exports._configVault = DotenvModule._configVault
402401
module.exports._parseVault = DotenvModule._parseVault
403-
module.exports._getRandomTip = DotenvModule._getRandomTip
404402
module.exports.config = DotenvModule.config
405403
module.exports.decrypt = DotenvModule.decrypt
406404
module.exports.parse = DotenvModule.parse

tests/test-config.js

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ t.test('deals with file:// path and debug true', ct => {
286286
})
287287

288288
t.test('displays random tips from the tips array', ct => {
289-
ct.plan(3)
289+
ct.plan(2)
290290

291291
const logStub = sinon.stub(console, 'log')
292292
const testPath = 'tests/.env'
@@ -332,10 +332,6 @@ t.test('displays random tips from the tips array', ct => {
332332

333333
ct.ok(foundExpectedTip, 'Should display one of the expected tips')
334334

335-
// Test that the _getRandomTip function exists and returns a tip
336-
const randomTip = dotenv._getRandomTip()
337-
ct.ok(expectedTips.includes(randomTip), 'Should return a valid tip from the array')
338-
339335
logStub.restore()
340336
ct.end()
341337
})

0 commit comments

Comments
 (0)