Files
common/packages/util-crypto/src/address/setSS58Format.spec.ts
T
Jaco Greeff 16d077c87d ss58Format option for Keyring (#471)
* ss58Format option  for Keyring

* Expose setSS58Format everywhere

* Remove setAddressPrefix

* 1.4.0
2019-09-12 13:59:03 +02:00

21 lines
520 B
TypeScript

// Copyright 2017-2019 @polkadot/util-crypto authors & contributors
// This software may be modified and distributed under the terms
// of the Apache-2.0 license. See the LICENSE file for details.
import encode from './encode';
import setSS58Format from './setSS58Format';
describe('setSS58Format', (): void => {
beforeEach((): void => {
setSS58Format(68);
});
it('sets and allows encoding using', (): void => {
expect(
encode(
new Uint8Array([1])
)
).toEqual('PqtB');
});
});