diff --git a/package.json b/package.json index 1add486..4b513f0 100644 --- a/package.json +++ b/package.json @@ -60,7 +60,6 @@ "@types/node": "^18.11.18", "@types/semver": "^7.3.13", "ava": "^5.1.0", - "clear-module": "^4.1.2", "del": "^7.0.0", "del-cli": "^5.0.0", "delay": "^5.0.0", diff --git a/source/index.ts b/source/index.ts index a7bb596..c0301a0 100644 --- a/source/index.ts +++ b/source/index.ts @@ -357,22 +357,12 @@ export default class Conf = Record { t.is(after.get('foo'), undefined); }); -test('decryption - migration to initialization vector', t => { - // The `test/config-encrypted-with-conf-4-1-0.json` file contains `{"unicorn": "🦄"}` JSON data which is encrypted with conf@4.1.0 and password `abcd1234` - const config = new Conf({ - cwd: 'test', - encryptionKey: 'abcd1234', - configName: 'config-encrypted-with-conf-4-1-0', - }); - - t.deepEqual(config.store, {unicorn: '🦄'}); -}); - test('onDidChange()', t => { const {config} = t.context;