"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const react_1 = __importDefault(require("react"));
const helpers_1 = require("../../../testUtils/helpers");
const __1 = require("..");
describe('<ButtonSmall />', () => {
    it('matches a snapshot when used without properties', () => {
        const { container } = helpers_1.render(react_1.default.createElement(__1.ButtonSmall, null));
        expect(container.firstChild).toMatchSnapshot();
    });
    it(`doesn't have minWidth set`, () => {
        const { container } = helpers_1.render(react_1.default.createElement(__1.ButtonSmall, null, "content"));
        const button = container.firstChild;
        if (!button) {
            throw new Error('Element not found.');
        }
        expect(window.getComputedStyle(button).minWidth).toBe('80px');
    });
});
//# sourceMappingURL=ButtonSmall.test.js.map