From 1c6b5ff8bdca3bbaf90845708e2c4c0a470677d7 Mon Sep 17 00:00:00 2001 From: Maha Benzekri Date: Tue, 30 Apr 2024 18:29:10 +0200 Subject: [PATCH] flag name change --- lib/IAMClient.js | 6 ++++-- tests/unit/deleteAccountQuota.js | 4 ++-- tests/unit/getAccountQuota.js | 4 ++-- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/lib/IAMClient.js b/lib/IAMClient.js index bf123d5..f3b2a4a 100644 --- a/lib/IAMClient.js +++ b/lib/IAMClient.js @@ -300,7 +300,8 @@ class VaultClient { const quotaIsValid = typeof quota === 'number' && !Number.isNaN(Number.parseInt(quota, 10)) && quota > 0; assert(!this.parameterValidation || quotaIsValid, 'Quota must be a strictly positive number'); if (accountName) { - assert(!this.parameterValidation || typeof accountName === 'string', 'the account name, if set, should be a string'); + assert(!this.parameterValidation || typeof accountName === 'string', + 'the account name, if set, should be a string'); data.AccountName = accountName; } this.request('POST', '/', true, callback, data); @@ -320,7 +321,8 @@ class VaultClient { }; if (accountName) { - assert(!this.parameterValidation || typeof accountName === 'string', 'the account name, if set, should be a string'); + assert(!this.parameterValidation || typeof accountName === 'string', + 'the account name, if set, should be a string'); data.AccountName = accountName; } this.request('POST', '/', true, callback, data); diff --git a/tests/unit/deleteAccountQuota.js b/tests/unit/deleteAccountQuota.js index 6d4ef6a..4650641 100644 --- a/tests/unit/deleteAccountQuota.js +++ b/tests/unit/deleteAccountQuota.js @@ -6,8 +6,8 @@ describe('IAMClient - deleteAccountQuota', () => { let lastRequestData; const createClient = parameterValidation => { - client = new IAMClient('127.0.0.1', 8500, undefined, undefined, - undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, parameterValidation); + client = new IAMClient('127.0.0.1', 8500, undefined, undefined, undefined, + undefined, undefined, undefined, undefined, undefined, undefined, undefined, parameterValidation); lastRequestData = null; client.request = (method, path, iamAuthenticate, callback, data, reqUid, contentType) => { lastRequestData = { method, path, iamAuthenticate, data, reqUid, contentType }; diff --git a/tests/unit/getAccountQuota.js b/tests/unit/getAccountQuota.js index cc024c8..5e21f99 100644 --- a/tests/unit/getAccountQuota.js +++ b/tests/unit/getAccountQuota.js @@ -6,8 +6,8 @@ describe('GetAccountQuota', () => { let lastRequestData; const createClient = parameterValidation => { - client = new IAMClient('127.0.0.1', 8500, undefined, undefined, - undefined, undefined, undefined, undefined, undefined, undefined, undefined, undefined, parameterValidation); + client = new IAMClient('127.0.0.1', 8500, undefined, undefined, undefined, + undefined, undefined, undefined, undefined, undefined, undefined, undefined, parameterValidation); lastRequestData = null; client.request = (method, path, iamAuthenticate, callback, data, reqUid, contentType) => { lastRequestData = { method, path, iamAuthenticate, data, reqUid, contentType };