import * as React from 'react';
import ActionList, {DIRECTION, ALIGNMENT} from './ActionList';
import ActionListHole from './ActionListHole';
import Button from 'buttons/Button';
import {render} from '@testing-library/react';
describe('ActionList', () => {
it('render', () => {
const actionList = render(
);
const root = actionList.container.firstElementChild;
// @ts-ignore TS18047
expect(root.classList.contains('sg-actions-list')).toEqual(true);
});
it('to-right', () => {
const actionList = render();
const root = actionList.container.firstElementChild;
// @ts-ignore TS18047
expect(root.classList.contains('sg-actions-list--to-right')).toEqual(true);
});
it('to-top', () => {
const actionList = render();
const root = actionList.container.firstElementChild;
// @ts-ignore TS18047
expect(root.classList.contains('sg-actions-list--to-top')).toEqual(true);
});
it('baseline', () => {
const actionList = render();
const root = actionList.container.firstElementChild;
// @ts-ignore TS18047
expect(root.classList.contains('sg-actions-list--align-baseline')).toEqual(
true
);
});
it('centered', () => {
const actionList = render();
const root = actionList.container.firstElementChild;
// @ts-ignore TS18047
expect(root.classList.contains('sg-actions-list--centered')).toEqual(true);
});
it('space-between', () => {
const actionList = render(
);
const root = actionList.container.firstElementChild;
// @ts-ignore TS18047
expect(root.classList.contains('sg-actions-list--space-between')).toEqual(
true
);
});
it('space-around', () => {
const actionList = render(
);
const root = actionList.container.firstElementChild;
// @ts-ignore TS18047
expect(root.classList.contains('sg-actions-list--space-around')).toEqual(
true
);
});
it('space-evenly', () => {
const actionList = render(
);
const root = actionList.container.firstElementChild;
// @ts-ignore TS18047
expect(root.classList.contains('sg-actions-list--space-evenly')).toEqual(
true
);
});
it('no-wrap', () => {
const actionList = render();
const root = actionList.container.firstElementChild;
// @ts-ignore TS18047
expect(root.classList.contains('sg-actions-list--no-wrap')).toEqual(true);
});
});