Skip to content

Commit 86c068a

Browse files
committed
fix: replace deprecated toThrowError with toThrow in wallet-toolbox tests
1 parent 040ce43 commit 86c068a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

packages/wallet/wallet-toolbox/src/storage/schema/entities/__tests/CertificateFieldTests.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ describe('CertificateField class method tests', () => {
327327
expect(entity.masterKey).toBe('masterKey1')
328328

329329
// Validate overridden properties
330-
expect(() => entity.id).toThrowError('entity has no "id" value')
330+
expect(() => entity.id).toThrow('entity has no "id" value')
331331
expect(entity.entityName).toBe('certificateField')
332332
expect(entity.entityTable).toBe('certificate_fields')
333333

packages/wallet/wallet-toolbox/src/storage/schema/entities/__tests/usersTests.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -333,7 +333,7 @@ describe('User class method tests', () => {
333333
const trx = undefined // Optional transaction token, set as undefined.
334334

335335
// The method should throw an error when called
336-
await expect(user.mergeNew(storage as any, userId, syncMap as any, trx)).rejects.toThrowError(
336+
await expect(user.mergeNew(storage as any, userId, syncMap as any, trx)).rejects.toThrow(
337337
'a sync chunk merge must never create a new user'
338338
)
339339
})

0 commit comments

Comments
 (0)