UNPKG

@bootstrap-styled/css-utils

Version:

Bootstrap mixins and utilities in javascript for bootstrap-styled.

30 lines (28 loc) 1.07 kB
import { fromJS } from 'immutable'; import { defaultProps, getTextUtilities } from '../text'; describe('bootstrap text utility', () => { it('getTextUtilities should return a list of css utilities', () => { const css = getTextUtilities( defaultProps['$enable-hover-media-query'], defaultProps['$grid-breakpoints'], defaultProps['$font-weight-normal'], defaultProps['$font-weight-bold'], defaultProps['$text-muted'], defaultProps['$brand-primary'], defaultProps['$brand-success'], defaultProps['$brand-info'], defaultProps['$brand-warning'], defaultProps['$brand-danger'], defaultProps['$gray-dark'] ); expect(css).not.toContain('undefined'); expect(css).not.toContain('null'); expect(fromJS({ css }).hashCode()).toEqual(-739621580); }); it('getTextUtilities should have arguments', () => { const css = getTextUtilities(); expect(css).not.toContain('undefined'); expect(css).not.toContain('null'); expect(fromJS({ css }).hashCode()).toEqual(-739621580); }); });