From 362cf45bc520a68a1c1be20e1189ca2307577dde Mon Sep 17 00:00:00 2001
From: Armand Philippot <git@armandphilippot.com>
Date: Tue, 19 Apr 2022 12:12:15 +0200
Subject: chore: add a Code component

---
 src/components/molecules/layout/code.test.tsx | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
 create mode 100644 src/components/molecules/layout/code.test.tsx

(limited to 'src/components/molecules/layout/code.test.tsx')

diff --git a/src/components/molecules/layout/code.test.tsx b/src/components/molecules/layout/code.test.tsx
new file mode 100644
index 0000000..ebcfae5
--- /dev/null
+++ b/src/components/molecules/layout/code.test.tsx
@@ -0,0 +1,16 @@
+import { render } from '@test-utils';
+import Code from './code';
+
+const code = `
+function foo() {
+  return 'bar';
+}
+`;
+
+const language = 'javascript';
+
+describe('Code', () => {
+  it('renders a code block', () => {
+    render(<Code language={language}>{code}</Code>);
+  });
+});
-- 
cgit v1.2.3

