import React from 'react';
import Layout from '..';
import { render } from '../../../tests/utils';
import ConfigProvider from '../../config-provider';
import Menu from '../../menu';
const { Header } = Layout;
describe('Layout.Token', () => {
it('legacy theme should work', () => {
const { container } = render(
,
);
expect(container.querySelector('.ant-layout-header')).toHaveStyle({
backgroundColor: '#FF0000',
});
expect(container.querySelector('.ant-menu')).toHaveStyle({
backgroundColor: '#00FF00',
});
});
it('theme should work', () => {
const { container } = render(
,
);
expect(container.querySelector('.ant-layout-header')).toHaveStyle({
backgroundColor: '#FF0000',
});
expect(container.querySelector('.ant-menu')).toHaveStyle({
backgroundColor: '#00FF00',
});
});
});