Skip to content

Commit 4112583

Browse files
committed
change searching method to avoid sorting error
1 parent 7e04d32 commit 4112583

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

web/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "ml-reef-front",
33
"homepage": ".",
4-
"version": "0.1.9-1640108570431",
4+
"version": "0.1.9-1640133688606",
55
"private": true,
66
"dependencies": {
77
"@react-pdf-viewer/core": "^2.7.1",

web/src/__tests__/views/BranchesView/branchesView.test.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ describe('test the frontend features', () => {
3131
wrapper = setup();
3232
});
3333
test('assert that branches list has correct name', () => {
34-
wrapper.find('.branch-title').forEach((branchTitle, index) => {
35-
expect(branchTitle.text().includes(branchesMock[index].name)).toBe(true);
34+
wrapper.find('.branch-title').forEach((branchTitle) => {
35+
expect(branchesMock.some((br) => br?.name === branchTitle.text())).toBe(true);
3636
});
3737
});
3838
test('assert that default branch does not render buttons div', () => {

0 commit comments

Comments
 (0)