소스 검색

Explicitly name projectOwnerEmail to the test for clarity

GitOrigin-RevId: 816faa68b7f8664269757918aac8199cbe3fc10f
M Fahru 4 년 전
부모
커밋
045a1523d9
1개의 변경된 파일과 3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      services/web/test/frontend/features/share-project-modal/components/share-project-modal.test.js

+ 3 - 1
services/web/test/frontend/features/share-project-modal/components/share-project-modal.test.js

@@ -317,7 +317,9 @@ describe('<ShareProjectModal/>', function () {
       },
     })
 
-    expect(screen.queryAllByText(USER_EMAIL)).to.have.length(1)
+    const projectOwnerEmail = USER_EMAIL
+
+    expect(screen.queryAllByText(projectOwnerEmail)).to.have.length(1)
     expect(screen.queryAllByText('member-author@example.com')).to.have.length(1)
     expect(screen.queryAllByText('member-viewer@example.com')).to.have.length(1)
     expect(screen.queryAllByText('invited-author@example.com')).to.have.length(