]> git.ardis.lu - envpass/commitdiff
Delete useless escapes
authorArdis Lu <ardisglu@gmail.com>
Sun, 30 Aug 2026 06:04:18 +0000 (23:04 -0700)
committerArdis Lu <ardisglu@gmail.com>
Sun, 30 Aug 2026 06:04:18 +0000 (23:04 -0700)
test/index.test.js

index 8037c16f0aa48781740c54d60aba2a29c11e1ab3..37a0f8de623fddbd158811d1460436955167c954 100644 (file)
@@ -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'] });
This page took 0.042282 seconds and 4 git commands to generate.