Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahqjiang committed Jan 3, 2025
1 parent f534db4 commit ef675b6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/index.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ describe("ServerlessPlugin", () => {
}
expect(threwError).toBe(true);
expect(thrownErrorMessage).toEqual(
"When `addExtension` is true, the environment variable `DATADOG_API_KEY` or configuration variable `apiKMSKey` or `apiKeySecretArn` must be set.",
"The environment variable `DATADOG_API_KEY` or configuration variable `apiKMSKey` or `apiKeySecretArn` must be set because `addExtension` is set to true as default.",
);
});
});
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -607,7 +607,7 @@ function validateConfiguration(config: Configuration): void {
config.apiKeySecretArn === undefined
) {
throw new Error(
"`The environment variable `DATADOG_API_KEY` or configuration variable `apiKMSKey` or `apiKeySecretArn` must be set because `addExtension` is set to true as default.",
"The environment variable `DATADOG_API_KEY` or configuration variable `apiKMSKey` or `apiKeySecretArn` must be set because `addExtension` is set to true as default.",
);
}
}
Expand Down

0 comments on commit ef675b6

Please sign in to comment.