@ryusei/light
Version:
<div align="center"> <a href="https://light.ryuseijs.com"> <img alt="RyuseiLight" src="https://light.ryuseijs.com/images/svg/logo.svg" width="70"> </a>
14 lines (10 loc) • 422 B
text/typescript
import { styles } from './styles';
describe( 'styles', () => {
test( 'can set inline styles by an object literal.', () => {
const div = document.createElement( 'div' );
styles( div, { color: 'red', backgroundColor: 'white', fontSize: '1rem' } );
expect( div.style.color ).toBe( 'red' );
expect( div.style.backgroundColor ).toBe( 'white' );
expect( div.style.fontSize ).toBe( '1rem' );
} );
} );