From 1e17e88aec1762fb7198128b4cf201ec631d1e52 Mon Sep 17 00:00:00 2001
From: Geovanni Perez <1775792+geoperez@users.noreply.github.com>
Date: Thu, 9 Nov 2023 10:11:00 -0600
Subject: [PATCH] WIP
---
jest-setup.tsx | 2 +-
src/ComposedLineChart/ComposedLineChart.spec.tsx | 16 ++++++++++++++++
src/DataChart/DataChart.spec.tsx | 10 ++++++++++
src/Table/Table.spec.tsx | 10 +++++++++-
4 files changed, 36 insertions(+), 2 deletions(-)
create mode 100644 src/ComposedLineChart/ComposedLineChart.spec.tsx
create mode 100644 src/DataChart/DataChart.spec.tsx
diff --git a/jest-setup.tsx b/jest-setup.tsx
index f4fc288..9f3d221 100644
--- a/jest-setup.tsx
+++ b/jest-setup.tsx
@@ -31,4 +31,4 @@ jest.mock('recharts', () => {
),
};
-});
\ No newline at end of file
+});
diff --git a/src/ComposedLineChart/ComposedLineChart.spec.tsx b/src/ComposedLineChart/ComposedLineChart.spec.tsx
new file mode 100644
index 0000000..a6a62ba
--- /dev/null
+++ b/src/ComposedLineChart/ComposedLineChart.spec.tsx
@@ -0,0 +1,16 @@
+import React from 'react';
+import { render } from '@testing-library/react';
+import { ComposedLineChart } from './index';
+import { identity } from 'uno-js';
+
+describe('ComposedLineChart', () => {
+ const data = [
+ { name: 'A', value: 10 },
+ { name: 'B', value: 20 },
+ { name: 'C', value: 30 },
+ ];
+
+ it('renders without crashing', () => {
+ render(