github.com/oinume/lekcije@v0.0.0-20231017100347-5b4c5eb6ab24/frontend/src/components/setting/NotificationTimeSpanForm.test.tsx (about) 1 import React from 'react'; 2 import {render, screen} from '@testing-library/react'; 3 import '@testing-library/jest-dom'; 4 import {NotificationTimeSpanForm} from './NotificationTimeSpanForm'; 5 6 test('<NotificationTimeSpanForm>', () => { 7 render( 8 <NotificationTimeSpanForm 9 timeSpans={[]} 10 handleAdd={() => { /* Nop */ }} 11 handleDelete={() => { /* Nop */ }} 12 handleUpdate={() => { /* Nop */ }} 13 handleOnChange={() => { /* Nop */ }} 14 />, 15 ); 16 17 expect(screen.getByText('編集')).toBeInTheDocument(); 18 // TODO: write more assertions 19 });