Sha256: 4110f2ad8dfe25f3d577a9b9fc8863edad77326fb18ac7e1114881444106d720
Contents?: true
Size: 672 Bytes
Versions: 22
Compression:
Stored size: 672 Bytes
Contents
import { ensureAccessible, renderKit } from '../utilities/test-utils' import Background from './_background' const props = { data: { testid: 'background' }, backgroundColor: null, } it('Should be accessible', async () => { ensureAccessible(Background, props) }) test('backgroundColor = success', () => { const kit = renderKit(Background, props, { backgroundColor: 'success' }) expect(kit).toHaveClass('pb_background_kit pb_background_color_success') }) test('backgroundColor = category_1', () => { const kit = renderKit(Background, props, { backgroundColor: 'category_1' }) expect(kit).toHaveClass('pb_background_kit pb_background_color_category_1') })
Version data entries
22 entries across 22 versions & 1 rubygems