2022-09-30 05:19:49 +00:00
|
|
|
import { render } from "@testing-library/react";
|
|
|
|
import React from "react";
|
|
|
|
import "@testing-library/jest-dom";
|
|
|
|
import { SquiggleChart } from "../src/index";
|
2022-09-30 00:22:14 +00:00
|
|
|
|
2022-10-04 01:22:41 +00:00
|
|
|
test("Logs nothing on render", async () => {
|
2022-09-30 05:19:49 +00:00
|
|
|
const { unmount } = render(<SquiggleChart code={"normal(0, 1)"} />);
|
|
|
|
unmount();
|
2022-09-30 00:22:14 +00:00
|
|
|
|
2022-10-04 01:22:41 +00:00
|
|
|
expect(console.log).not.toBeCalled();
|
2022-09-30 05:19:49 +00:00
|
|
|
expect(console.warn).not.toBeCalled();
|
|
|
|
expect(console.error).not.toBeCalled();
|
|
|
|
});
|