14 lines
370 B
TypeScript
14 lines
370 B
TypeScript
|
import {render} from '@testing-library/react'
|
||
|
import React from 'react'
|
||
|
import '@testing-library/jest-dom'
|
||
|
import { SquiggleChart } from '../src/index'
|
||
|
|
||
|
test('Logs no warnings or errors', async () => {
|
||
|
|
||
|
const { unmount } = render(<SquiggleChart code={"normal(0, 1)"} />)
|
||
|
unmount()
|
||
|
|
||
|
expect(console.warn).not.toBeCalled()
|
||
|
expect(console.error).not.toBeCalled()
|
||
|
})
|