ghost-portal/packages/apps-config/src/api/index.spec.ts
Jaco 4929b1c6fd
Update headers for 2023 (#8665)
* Update headers for 2023

* Adjust env-config
2023-01-01 10:32:05 +02:00

25 lines
614 B
TypeScript

// Copyright 2017-2023 @polkadot/apps-config authors & contributors
// SPDX-License-Identifier: Apache-2.0
import type { OverrideBundleDefinition } from '@polkadot/types/types';
import spec from './spec';
import { typesBundle } from '.';
function getDerives (spec: Record<string, OverrideBundleDefinition>): string[] {
return Object
.entries(spec)
.filter(([, v]) => !!v.derives)
.map(([k]) => k);
}
describe('typesBundle', (): void => {
it('all derives are re-exported', (): void => {
expect(
getDerives(spec)
).toEqual(
getDerives(typesBundle.spec || {})
);
});
});