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

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

import xs from 'xmlserializer';

import { svg } from './svg.js';

describe('svg', (): void => {
  it('creates a basic SVG element', (): void => {
    expect(
      xs.serializeToString(
        // eslint-disable-next-line @typescript-eslint/no-unsafe-argument,@typescript-eslint/no-explicit-any
        svg('rect') as any
      )
    ).toEqual('<rect xmlns="http://www.w3.org/2000/svg"/>');
  });
});
