Skip to content

Commit

Permalink
remove invalid quotes when building feature commands
Browse files Browse the repository at this point in the history
  • Loading branch information
slemke committed Jan 2, 2024
1 parent 3c66f49 commit a9f5a04
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
4 changes: 2 additions & 2 deletions src/configuration/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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}`);
Expand Down
4 changes: 2 additions & 2 deletions test/configuration/commands.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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'
]);
});

Expand All @@ -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'
]);
});

Expand Down

0 comments on commit a9f5a04

Please sign in to comment.