1 // Copyright (C) The Arvados Authors. All rights reserved.
3 // SPDX-License-Identifier: AGPL-3.0
5 import { projectActionSet, readOnlyProjectActionSet } from "./project-action-set";
7 describe('project-action-set', () => {
8 const flattProjectActionSet = projectActionSet.reduce((prev, next) => prev.concat(next), []);
9 const flattReadOnlyProjectActionSet = readOnlyProjectActionSet.reduce((prev, next) => prev.concat(next), []);
11 describe('projectActionSet', () => {
12 it('should not be empty', () => {
14 expect(flattProjectActionSet.length).toBeGreaterThan(0);
17 it('should contain readOnlyProjectActionSet items', () => {
19 expect(flattProjectActionSet)
20 .toEqual(expect.arrayContaining(flattReadOnlyProjectActionSet));
24 describe('readOnlyProjectActionSet', () => {
25 it('should not be empty', () => {
27 expect(flattReadOnlyProjectActionSet.length).toBeGreaterThan(0);
30 it('should not contain projectActionSet items', () => {
32 expect(flattReadOnlyProjectActionSet)
33 .not.toEqual(expect.arrayContaining(flattProjectActionSet));