mirror of
https://github.com/Xahau/xahau.js.git
synced 2025-11-26 23:25:49 +00:00
feat: remove assert library as a testing dep (#2563)
Right now we have 5 testing library dependencies. This eliminates `assert`. `jest`, `jasmine`, `chai` and `karma` are the remaining ones.
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
const { throws } = require('assert')
|
||||
const {
|
||||
encodeForSigning,
|
||||
encodeForSigningClaim,
|
||||
@@ -123,7 +122,9 @@ describe('Signing data', function () {
|
||||
TransactionType: 'NotAPayment',
|
||||
}
|
||||
|
||||
throws(() => encodeForSigning(invalidTransactionType), /NotAPayment/u)
|
||||
expect(() => encodeForSigning(invalidTransactionType)).toThrow(
|
||||
/NotAPayment/u,
|
||||
)
|
||||
})
|
||||
|
||||
test('can create multi signing blobs', function () {
|
||||
|
||||
Reference in New Issue
Block a user