Skip to content

Commit 969c0dd

Browse files
update error mesage
1 parent c6e4423 commit 969c0dd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/AzureAppConfigurationImpl.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ export class AzureAppConfigurationImpl implements AzureAppConfiguration {
176176
const { secretRefreshIntervalInMs } = options.keyVaultOptions;
177177
if (secretRefreshIntervalInMs !== undefined) {
178178
if (secretRefreshIntervalInMs < MIN_SECRET_REFRESH_INTERVAL_IN_MS) {
179-
throw new RangeError(`The key vault secret refresh interval cannot be less than ${MIN_SECRET_REFRESH_INTERVAL_IN_MS} milliseconds.`);
179+
throw new RangeError(`The Key Vault secret refresh interval cannot be less than ${MIN_SECRET_REFRESH_INTERVAL_IN_MS} milliseconds.`);
180180
}
181181
this.#secretRefreshEnabled = true;
182182
this.#secretRefreshTimer = new RefreshTimer(secretRefreshIntervalInMs);

test/keyvault.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ describe("key vault secret refresh", function () {
155155
secretRefreshIntervalInMs: 59999 // less than 60_000 milliseconds
156156
}
157157
});
158-
return expect(loadWithInvalidSecretRefreshInterval).eventually.rejectedWith("The key vault secret refresh interval cannot be less than 60000 milliseconds.");
158+
return expect(loadWithInvalidSecretRefreshInterval).eventually.rejectedWith("The Key Vault secret refresh interval cannot be less than 60000 milliseconds.");
159159
});
160160

161161
it("should reload key vault secret when there is no change to key-values", async () => {

0 commit comments

Comments
 (0)