Files
pezkuwi-ui/packages/ui-shared/src/icons/beachball/container.spec.ts
T
pezkuwichain d1cd13072f Rebrand: polkadot → pezkuwi
- Updated all package references
- Fixed react-identicon and related packages
- Version 3.16.8
2026-01-07 02:35:24 +03:00

47 lines
1.3 KiB
TypeScript

// Copyright 2017-2025 @pezkuwi/ui-shared authors & contributors
// SPDX-License-Identifier: Apache-2.0
/// <reference types="@pezkuwi/dev-test/globals.d.ts" />
import { container } from './container.js';
describe('container', (): void => {
it('applies default styles', (): void => {
expect(
// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-member-access
(container(100).style as any)._values
).toMatchObject({
background: 'white',
'border-radius': '50px',
display: 'inline-block',
height: '100px',
margin: '0px',
overflow: 'hidden',
padding: '0px',
width: '100px'
});
});
it('overrides with supplied styles', (): void => {
expect(
// eslint-disable-next-line @typescript-eslint/no-explicit-any,@typescript-eslint/no-unsafe-member-access
(container(50, 'black', '', { display: 'block' }).style as any)._values
).toMatchObject({
background: 'black',
'border-radius': '25px',
display: 'block',
height: '50px',
margin: '0px',
overflow: 'hidden',
padding: '0px',
width: '50px'
});
});
it('applies the specified className', (): void => {
expect(
container(100, 'blue', 'testClass').className
).toEqual('testClass');
});
});