Skip to content

Commit 1828979

Browse files
committed
fix merge
1 parent a022fd4 commit 1828979

File tree

1 file changed

+6
-6
lines changed
  • frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage

1 file changed

+6
-6
lines changed

frontend/libs/studio-content-library/src/ContentLibrary/LibraryBody/pages/CodeListPage/CodeListPage.test.tsx

+6-6
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe('CodeListPage', () => {
5454

5555
it('renders the code list accordion', () => {
5656
renderCodeListPage();
57-
const codeListAccordion = getCodeListAccordion(codeListName);
57+
const codeListAccordion = getCodeListAccordion(codeListTitle);
5858
expect(codeListAccordion).toBeInTheDocument();
5959
});
6060

@@ -67,8 +67,8 @@ describe('CodeListPage', () => {
6767
});
6868
const searchInput = screen.getByRole('searchbox');
6969
await user.type(searchInput, codeListsSearchParam);
70-
[codeListName, codeList2].forEach((codeListTitle) => {
71-
expect(getCodeListAccordion(codeListTitle)).toBeInTheDocument();
70+
[codeListTitle, codeList2].forEach((title) => {
71+
expect(getCodeListAccordion(title)).toBeInTheDocument();
7272
});
7373
});
7474

@@ -85,7 +85,7 @@ describe('CodeListPage', () => {
8585
expect(
8686
screen.queryByTitle(
8787
textMock('app_content_library.code_lists.code_list_accordion_title', {
88-
codeListTitle: codeListName,
88+
codeListTitle,
8989
}),
9090
),
9191
).not.toBeInTheDocument();
@@ -173,10 +173,10 @@ const uploadCodeList = async (user: UserEvent, fileName: string = uploadedCodeLi
173173
await user.upload(fileUploaderButton, file);
174174
};
175175

176-
const getCodeListAccordion = (codeListTitle: string) => {
176+
const getCodeListAccordion = (title: string) => {
177177
return screen.getByTitle(
178178
textMock('app_content_library.code_lists.code_list_accordion_title', {
179-
codeListTitle,
179+
codeListTitle: title,
180180
}),
181181
);
182182
};

0 commit comments

Comments
 (0)