Skip to content

Commit 1cb0344

Browse files
committed
test(credential-provider-imds): test fix for undefined accountId
1 parent 2c5d4b2 commit 1cb0344

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/credential-provider-imds/src/remoteProvider/ImdsCredentials.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,6 @@ describe("fromImdsCredentials", () => {
6363
expect(converted.secretAccessKey).toEqual(credsWithoutAccountId.SecretAccessKey);
6464
expect(converted.sessionToken).toEqual(credsWithoutAccountId.Token);
6565
expect(converted.expiration).toEqual(new Date(credsWithoutAccountId.Expiration));
66-
expect(converted).not.toHaveProperty("accountId"); // Verify accountId is not included
66+
expect(converted.accountId).toBeUndefined(); // Verify accountId is undefined
6767
});
6868
});

0 commit comments

Comments
 (0)