1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { isProjectTrashed } from './side-panel-button';
7 describe('<SidePanelButton />', () => {
8 describe('isProjectTrashed', () => {
9 it('should return false if parent project is undefined', () => {
15 const result = isProjectTrashed(proj, resources);
18 expect(result).toBeFalsy();
21 it('should return false for owner', () => {
24 ownerUuid: 'ce8i5-tpzed-000000000000000',
29 const result = isProjectTrashed(proj, resources);
32 expect(result).toBeFalsy();
35 it('should return true for trashed', () => {
43 const result = isProjectTrashed(proj, resources);
46 expect(result).toBeTruthy();
49 it.only('should return false for undefined parent projects', () => {
52 ownerUuid: 'ce8i5-j7d0g-000000000000000',
57 const result = isProjectTrashed(proj, resources);
60 expect(result).toBeFalsy();