// Copyright 2017-2025 @polkadot/ui-shared authors & contributors
// SPDX-License-Identifier: Apache-2.0

/// <reference types="@polkadot/dev-test/globals.d.ts" />

import xmlserializer from 'xmlserializer';

import { seeder } from '../seeder.js';
import { circle } from './circle.js';

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"/>');
  });
});
