From 3438b7596a322a9a7608f780aa776bdd228a60ff Mon Sep 17 00:00:00 2001 From: "Juan Picado @jotadeveloper" Date: Wed, 2 Oct 2019 20:56:50 +0200 Subject: [PATCH] fix: comment out experiments from configuration files (#1505) --- conf/default.yaml | 7 +++---- conf/docker.yaml | 7 +++---- test/unit/modules/config/config.spec.ts | 7 +++++++ 3 files changed, 13 insertions(+), 8 deletions(-) diff --git a/conf/default.yaml b/conf/default.yaml index 5ebecaac7..a00c00956 100644 --- a/conf/default.yaml +++ b/conf/default.yaml @@ -68,7 +68,6 @@ middlewares: logs: - { type: stdout, format: pretty, level: http } #- {type: file, path: verdaccio.log, level: info} - -experiments: - # support for npm token command - token: false +#experiments: +# # support for npm token command +# token: false diff --git a/conf/docker.yaml b/conf/docker.yaml index 709f6b774..886dae8c1 100644 --- a/conf/docker.yaml +++ b/conf/docker.yaml @@ -68,7 +68,6 @@ middlewares: logs: - { type: stdout, format: pretty, level: http } #- {type: file, path: verdaccio.log, level: info} - -experiments: - # support for npm token command - token: false +#experiments: +# # support for npm token command +# token: false diff --git a/test/unit/modules/config/config.spec.ts b/test/unit/modules/config/config.spec.ts index 66010fdc5..93953a76d 100644 --- a/test/unit/modules/config/config.spec.ts +++ b/test/unit/modules/config/config.spec.ts @@ -62,6 +62,9 @@ const checkDefaultConfPackages = (config) => { expect(config.publish).toBeUndefined(); expect(config.url_prefix).toBeUndefined(); expect(config.url_prefix).toBeUndefined(); + + expect(config.experiments).toBeUndefined(); + expect(config.jwt).toBeUndefined(); }; describe('Config file', () => { @@ -90,5 +93,9 @@ describe('Config file', () => { }); }); + describe('Config file', () => { + + }); + });