X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/b71d59f7e1876c9eb20c2aa7c749c0acc8568b6f..a31a8fcb90d15b9810d36f4e3c8cb79b4e5f8ef9:/src/views-components/side-panel-button/side-panel-button.test.tsx diff --git a/src/views-components/side-panel-button/side-panel-button.test.tsx b/src/views-components/side-panel-button/side-panel-button.test.tsx index 056b2e6467..9704be71ab 100644 --- a/src/views-components/side-panel-button/side-panel-button.test.tsx +++ b/src/views-components/side-panel-button/side-panel-button.test.tsx @@ -6,6 +6,18 @@ import { isProjectTrashed } from './side-panel-button'; describe('', () => { describe('isProjectTrashed', () => { + it('should return false if project is undefined', () => { + // given + const proj = undefined; + const resources = {}; + + // when + const result = isProjectTrashed(proj, resources); + + // then + expect(result).toBeFalsy(); + }); + it('should return false if parent project is undefined', () => { // given const proj = {}; @@ -46,7 +58,7 @@ describe('', () => { expect(result).toBeTruthy(); }); - it.only('should return false for undefined parent projects', () => { + it('should return false for undefined parent projects', () => { // given const proj = { ownerUuid: 'ce8i5-j7d0g-000000000000000',