import * as __WEBPACK_EXTERNAL_MODULE__testing_library_react__ from "@testing-library/react";
import * as __WEBPACK_EXTERNAL_MODULE__CodeBlock_mjs__ from "./CodeBlock.mjs";
const languages = [
    'jsx',
    'tsx',
    'bash',
    'python',
    'go',
    'java',
    'protobuf',
    'json'
];
describe('CodeBlock', ()=>{
    const codeString = 'asdf';
    test.each(languages)('should render a codeblock with language %s', async (language)=>{
        (0, __WEBPACK_EXTERNAL_MODULE__testing_library_react__.render)(/*#__PURE__*/ React.createElement(__WEBPACK_EXTERNAL_MODULE__CodeBlock_mjs__["default"], {
            language: language,
            codeString: codeString
        }));
        await (0, __WEBPACK_EXTERNAL_MODULE__testing_library_react__.waitFor)(()=>{
            expect(__WEBPACK_EXTERNAL_MODULE__testing_library_react__.screen.getByText(codeString)).toBeVisible();
        });
    });
});
