Skip to content
This repository has been archived by the owner on Mar 5, 2024. It is now read-only.

Added more tests #94

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/tests/App.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,28 @@ import ProductHeatmap from '../ProductHeatmap';
import AggregateHeatmap from '../AggregateHeatmap';
import CanvasPage from '../CanvasPage';
import Canvas from '../Canvas';
import Menu from '../components/Menubar';
import ProductCarousel from '../components/Carousel';
import { act } from 'react-dom/test-utils';

const getById = queryByAttribute.bind(null, 'id');

describe.only("Product Carousel", () => {

test('Product Carousel Render', async() => {
render(<ProductCarousel updateFunction={(a, b)=>{return 0;}}/>);
})
})

describe.only("Menubar", () => {

test('Menubar Render', async() => {
render(<Menu removeToken= {()=>{return 0;}}/>);

expect(screen.getByText(/login/i)).toBeInTheDocument()
})
})

describe("Canvas", () => {

test('Canvas Render', async() => {
Expand Down