From 0b82b73f24e5d1b14d3ebc99492e1111752d9efc Mon Sep 17 00:00:00 2001 From: Sascha Lemke Date: Tue, 2 Jan 2024 10:36:22 +0100 Subject: [PATCH] remove invalid quotes building feature commands --- package.json | 2 +- src/configuration/commands.ts | 4 ++-- test/configuration/commands.spec.ts | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/package.json b/package.json index 3151d93..589c26f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "keycloak-testcontainer", - "version": "0.0.1", + "version": "0.0.2", "description": "Run a Keycloak testcontainer with node.js", "main": "dist/index.js", "types": "dist/index.d.ts", diff --git a/src/configuration/commands.ts b/src/configuration/commands.ts index e541fe9..135fc4d 100644 --- a/src/configuration/commands.ts +++ b/src/configuration/commands.ts @@ -62,10 +62,10 @@ export class CommandsBuilder { commands.push('--metrics-enabled=true'); } if (this.features.length > 0) { - commands.push(`--features="${this.features.join(',')}"`); + commands.push(`--features=${this.features.join(',')}`); } if (this.disabledFeatures.length > 0) { - commands.push(`--features-disabled="${this.disabledFeatures.join(',')}"`); + commands.push(`--features-disabled=${this.disabledFeatures.join(',')}`); } if (this.database) { commands.push(`--db=${this.database.vendor}`); diff --git a/test/configuration/commands.spec.ts b/test/configuration/commands.spec.ts index f9c3364..4769c4b 100644 --- a/test/configuration/commands.spec.ts +++ b/test/configuration/commands.spec.ts @@ -14,7 +14,7 @@ describe('Commands Builder', () => { commandsBuilder.withFeatures(['docker', 'token-exchange']); expect(commandsBuilder.build()).toStrictEqual([ ...defaultCommands, - '--features="docker,token-exchange"' + '--features=docker,token-exchange' ]); }); @@ -23,7 +23,7 @@ describe('Commands Builder', () => { commandsBuilder.withDisabledFeatures(['docker', 'token-exchange']); expect(commandsBuilder.build()).toStrictEqual([ ...defaultCommands, - '--features-disabled="docker,token-exchange"' + '--features-disabled=docker,token-exchange' ]); });