Skip to content

Commit ef1e226

Browse files
committed
remove ?.
1 parent ef4c26e commit ef1e226

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

modules/kms-keyring/test/kms_mrk_discovery_keyring.constructor.test.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import {
99
NodeAlgorithmSuite,
1010
Keyring,
1111
Newable,
12+
needs,
1213
} from '@aws-crypto/material-management'
1314

1415
describe('AwsKmsMrkAwareSymmetricDiscoveryKeyring: constructor', () => {
@@ -141,10 +142,10 @@ describe('AwsKmsMrkAwareSymmetricDiscoveryKeyring: constructor', () => {
141142
client,
142143
})
143144
await test.clientRegion
145+
const prop = Object.getOwnPropertyDescriptor(test, 'clientRegion')
144146
expect(test.clientRegion).to.equal(region)
145-
expect(
146-
Object.getOwnPropertyDescriptor(test, 'clientRegion')?.writable
147-
).to.equal(false)
147+
needs(prop, 'The clientRegion MUST exist')
148+
expect(prop.writable).to.equal(false)
148149
})
149150

150151
it('Postcondition: Resolve the promise with the value set.', async () => {

0 commit comments

Comments
 (0)