Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

rm code

Blue Mousee6b956c529bb
diff --git a/src/ui/__test__/Code.test.tsx b/src/ui/__test__/Code.test.tsx
deleted file mode 100644
index 9d20b678b..000000000
--- a/src/ui/__test__/Code.test.tsx
+++ /dev/null
@@ -1,28 +0,0 @@
-/* eslint-disable testing-library/prefer-screen-queries */
-/* eslint-disable import/no-extraneous-dependencies */
-import React from 'react'
-import { render } from '@testing-library/react'
-import Code from '../Code'
-
-describe('Code component', () => {
- const testText = 'const greeting = "Hello, world!";'
- const testLanguage = 'javascript'
-
- it('renders the correct text and language', () => {
- const { getByText } = render(
- <Code text={testText} language={testLanguage} />,
- )
- const codeElement = getByText(testText)
- expect(codeElement).toBeInTheDocument()
- expect(codeElement).toHaveClass(`language-${testLanguage}`)
- })
-
- it('applies any additional className passed in as a prop', () => {
- const testClassName = 'test-class'
- const { container } = render(
- <Code text={testText} language={testLanguage} className={testClassName} />,
- )
- // eslint-disable-next-line testing-library/no-node-access
- expect(container.firstChild).toHaveClass(testClassName)
- })
-})