Files
pezkuwi-ui/packages/ui-shared/src/icons/beachball/shape/circle.spec.ts
T
2023-01-01 10:21:18 +02:00

19 lines
625 B
TypeScript

// Copyright 2017-2023 @polkadot/ui-shared authors & contributors
// SPDX-License-Identifier: Apache-2.0
import xmlserializer from 'xmlserializer';
import { seeder } from '../seeder';
import { circle } from './circle';
describe('circle', (): void => {
it('creates a circle shape', (): void => {
expect(
xmlserializer.serializeToString(
// eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-explicit-any
circle(seeder(), 'blue', 50, 2) as any
)
).toEqual('<circle xmlns="http://www.w3.org/2000/svg" cx="25" cy="32.5" r="15" fill="blue"/>');
});
});