mirror of
https://github.com/pezkuwichain/pezkuwi-ui.git
synced 2026-06-13 20:21:02 +00:00
19 lines
625 B
TypeScript
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"/>');
|
|
});
|
|
});
|