From: Ardis Lu Date: Sun, 30 Aug 2026 06:04:18 +0000 (-0700) Subject: Delete useless escapes X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=a42ac2851185c0d8461e10e5a51072aa75fda2e0;p=envpass Delete useless escapes --- diff --git a/test/index.test.js b/test/index.test.js index 8037c16..37a0f8d 100644 --- a/test/index.test.js +++ b/test/index.test.js @@ -103,7 +103,7 @@ suite('encrypt', () => { const envFile = await setupEnv(t, ENCRYPTED_ENV); assertConsole(t, { debug: 0, info: 0, warn: 0, error: 0 }); - await rejects(encrypt({ inFile: envFile, alreadyEncryptedValue: 'error' }), /Environment variable \".+\" is already encrypted\./); + await rejects(encrypt({ inFile: envFile, alreadyEncryptedValue: 'error' }), /Environment variable ".+" is already encrypted\./); }); test('throws if unable to get passkey', async (t) => { t.mock.timers.enable({ apis: ['setTimeout'] }); @@ -154,7 +154,7 @@ suite('decrypt', () => { const envFile = await setupEnv(t, STD_ENV); assertConsole(t, { debug: 0, info: 0, warn: 0, error: 0 }); - await rejects(decrypt({ inFile: envFile, notEncryptedValue: 'error' }), /Environment variable \".+\" is not encrypted\./); + await rejects(decrypt({ inFile: envFile, notEncryptedValue: 'error' }), /Environment variable ".+" is not encrypted\./); }); test('throws if unable to get passkey', async (t) => { t.mock.timers.enable({ apis: ['setTimeout'] });