Files
pezkuwi-common/packages/networks/src/ss58registry.spec.ts
T
pezkuwichain a5542fdd87 Rebrand: polkadot → pezkuwi internal references fixed
- Fixed internal @polkadot references to @pezkuwi
- Updated hw-ledger and hw-ledger-transports packages
- Updated keyring and networks packages
- Version 14.0.7
2026-01-07 02:34:39 +03:00

35 lines
830 B
TypeScript

// Copyright 2017-2025 @pezkuwi/networks authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
import known from '@substrate/ss58-registry';
import fs from 'node:fs';
import { stringify } from '@pezkuwi/util';
describe('@substrate/ss58-registry', (): void => {
it('has known values', (): void => {
const testUrl = new URL('../test/ss58registry.json', import.meta.url);
const json = stringify(known, 2);
try {
expect(
JSON.parse(json)
).toEqual(
JSON.parse(
fs.readFileSync(testUrl, 'utf-8')
)
);
} catch (error) {
if (process.env['GITHUB_REPOSITORY']) {
console.error(json);
throw error;
}
fs.writeFileSync(testUrl, json, { flag: 'w' });
}
});
});