mirror of
https://github.com/pezkuwichain/pezkuwi-common.git
synced 2026-04-21 23:48:05 +00:00
a5542fdd87
- Fixed internal @polkadot references to @pezkuwi - Updated hw-ledger and hw-ledger-transports packages - Updated keyring and networks packages - Version 14.0.7
35 lines
830 B
TypeScript
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' });
|
|
}
|
|
});
|
|
});
|