Skip to content

Commit

Permalink
fixed tests
Browse files Browse the repository at this point in the history
  • Loading branch information
OlyaKorchan committed Oct 29, 2023
1 parent c24a024 commit 62ba0d5
Showing 1 changed file with 11 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,21 @@ import { screen, fireEvent } from '@testing-library/react'

import CourseSectionContainer from '~/containers/course-section/CourseSectionContainer'

const mockedSectionData = {
section_id: 1,
title: '',
description: '',
resources: []
}

describe('CourseSectionContainer tests', () => {
beforeEach(() => {
renderWithProviders(<CourseSectionContainer />)
renderWithProviders(
<CourseSectionContainer sectionData={mockedSectionData} />
)
})

it('should render inouts for title and description', () => {
it('should render inputs for title and description', () => {
const titleInput = screen.getByText('course.courseSection.defaultNewTitle')
const labelInput = screen.getByText(
'course.courseSection.defaultNewDescription'
Expand Down

0 comments on commit 62ba0d5

Please sign in to comment.