"use strict";
var __webpack_require__ = {};
(()=>{
    __webpack_require__.n = function(module) {
        var getter = module && module.__esModule ? function() {
            return module['default'];
        } : function() {
            return module;
        };
        __webpack_require__.d(getter, {
            a: getter
        });
        return getter;
    };
})();
(()=>{
    __webpack_require__.d = function(exports1, definition) {
        for(var key in definition)if (__webpack_require__.o(definition, key) && !__webpack_require__.o(exports1, key)) Object.defineProperty(exports1, key, {
            enumerable: true,
            get: definition[key]
        });
    };
})();
(()=>{
    __webpack_require__.o = function(obj, prop) {
        return Object.prototype.hasOwnProperty.call(obj, prop);
    };
})();
var __webpack_exports__ = {};
const jsx_runtime_namespaceObject = require("react/jsx-runtime");
require("react");
const client_namespaceObject = require("@tachybase/test/client");
const antd_icon_js_namespaceObject = require("../demos/antd-icon.js");
var antd_icon_js_default = /*#__PURE__*/ __webpack_require__.n(antd_icon_js_namespaceObject);
const custom_icon_js_namespaceObject = require("../demos/custom-icon.js");
var custom_icon_js_default = /*#__PURE__*/ __webpack_require__.n(custom_icon_js_namespaceObject);
const iconfont_js_namespaceObject = require("../demos/iconfont.js");
var iconfont_js_default = /*#__PURE__*/ __webpack_require__.n(iconfont_js_namespaceObject);
const register_icon_js_namespaceObject = require("../demos/register-icon.js");
var register_icon_js_default = /*#__PURE__*/ __webpack_require__.n(register_icon_js_namespaceObject);
describe('Icon', ()=>{
    it('antd icon', ()=>{
        (0, client_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(antd_icon_js_default(), {}));
        expect(client_namespaceObject.screen.getByRole('img')).toMatchInlineSnapshot('\n      <span\n        aria-label="book"\n        class="anticon anticon-book"\n        role="img"\n      >\n        <svg\n          aria-hidden="true"\n          data-icon="book"\n          fill="currentColor"\n          focusable="false"\n          height="1em"\n          viewBox="64 64 896 896"\n          width="1em"\n        >\n          <path\n            d="M832 64H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V96c0-17.7-14.3-32-32-32zm-260 72h96v209.9L621.5 312 572 347.4V136zm220 752H232V136h280v296.9c0 3.3 1 6.6 3 9.3a15.9 15.9 0 0022.3 3.7l83.8-59.9 81.4 59.4c2.7 2 6 3.1 9.4 3.1 8.8 0 16-7.2 16-16V136h64v752z"\n          />\n        </svg>\n      </span>\n    ');
    });
    it('iconfont', ()=>{
        (0, client_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(iconfont_js_default(), {}));
        expect(client_namespaceObject.screen.getByRole('img')).toMatchInlineSnapshot('\n      <span\n        class="anticon"\n        role="img"\n      >\n        <svg\n          aria-hidden="true"\n          class=""\n          fill="currentColor"\n          focusable="false"\n          height="1em"\n          width="1em"\n        >\n          <use\n            xlink:href="#icon-tuichu"\n          />\n        </svg>\n      </span>\n    ');
    });
    it('custom icon', ()=>{
        (0, client_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(custom_icon_js_default(), {}));
        expect(client_namespaceObject.screen.getByRole('img')).toMatchInlineSnapshot('\n      <span\n        class="anticon"\n        role="img"\n      >\n        <svg\n          fill="currentColor"\n          height="1em"\n          viewBox="0 0 1024 1024"\n          width="1em"\n        >\n          <path\n            d="M923 283.6c-13.4-31.1-32.6-58.9-56.9-82.8-24.3-23.8-52.5-42.4-84-55.5-32.5-13.5-66.9-20.3-102.4-20.3-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5-24.4 23.9-43.5 51.7-56.9 82.8-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3 0.1-35.3-7-69.6-20.9-101.9z"\n          />\n        </svg>\n      </span>\n    ');
    });
    it('register icon', ()=>{
        (0, client_namespaceObject.render)(/*#__PURE__*/ (0, jsx_runtime_namespaceObject.jsx)(register_icon_js_default(), {}));
        expect(client_namespaceObject.screen.getByRole('img')).toMatchInlineSnapshot('\n      <span\n        class="anticon"\n        role="img"\n      >\n        <svg\n          fill="currentColor"\n          height="1em"\n          viewBox="0 0 1024 1024"\n          width="1em"\n        >\n          <path\n            d="M923 283.6c-13.4-31.1-32.6-58.9-56.9-82.8-24.3-23.8-52.5-42.4-84-55.5-32.5-13.5-66.9-20.3-102.4-20.3-49.3 0-97.4 13.5-139.2 39-10 6.1-19.5 12.8-28.5 20.1-9-7.3-18.5-14-28.5-20.1-41.8-25.5-89.9-39-139.2-39-35.5 0-69.9 6.8-102.4 20.3-31.4 13-59.7 31.7-84 55.5-24.4 23.9-43.5 51.7-56.9 82.8-13.9 32.3-21 66.6-21 101.9 0 33.3 6.8 68 20.3 103.3 11.3 29.5 27.5 60.1 48.2 91 32.8 48.9 77.9 99.9 133.9 151.6 92.8 85.7 184.7 144.9 188.6 147.3l23.7 15.2c10.5 6.7 24 6.7 34.5 0l23.7-15.2c3.9-2.5 95.7-61.6 188.6-147.3 56-51.7 101.1-102.7 133.9-151.6 20.7-30.9 37-61.5 48.2-91 13.5-35.3 20.3-70 20.3-103.3 0.1-35.3-7-69.6-20.9-101.9z"\n          />\n        </svg>\n      </span>\n    ');
    });
});
var __webpack_export_target__ = exports;
for(var __webpack_i__ in __webpack_exports__)__webpack_export_target__[__webpack_i__] = __webpack_exports__[__webpack_i__];
if (__webpack_exports__.__esModule) Object.defineProperty(__webpack_export_target__, '__esModule', {
    value: true
});
