box-ui-elements-mlh
Version:
13 lines (10 loc) • 432 B
JavaScript
import omit from 'lodash/omit';
import defaultTheme from '../theme';
import { createTheme } from '../../utils/createTheme';
import * as vars from '../variables';
describe('styles/theme', () => {
test('should generate box blue theme matching the defaultTheme', () => {
const dynamicTheme = createTheme(vars.bdlBoxBlue);
expect(defaultTheme).toMatchObject(omit(dynamicTheme, ['primary', '_debug']));
});
});