Sha256: 4282fd1eb543c509401fc6f4ea08ebedc9f3285323e59de24da7b415c1e644e1

Contents?: true

Size: 471 Bytes

Versions: 37

Compression:

Stored size: 471 Bytes

Contents

import { filterAccounts } from '../AccountListHelper';
import { accounts, accountIDs } from '../AccountList.fixtures';

describe('AccountList helpers', () => {
  it('account ids filter should return all accounts where label contains "test"', () => {
    expect(filterAccounts(accounts, accountIDs, 'test')).toEqual(accountIDs);
  });

  it('account ids filter should not match', () => {
    expect(filterAccounts(accounts, accountIDs, 'no_match')).toEqual([]);
  });
});

Version data entries

37 entries across 37 versions & 1 rubygems

Version Path
foreman_rh_cloud-1.0.17 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-2.0.17 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-3.0.17 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-2.0.16 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-1.0.16 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-3.0.16 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-1.0.15 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-2.0.15 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-3.0.15 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-3.0.14 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-2.0.14 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-1.0.14 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-0.9.14 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-0.9.13.1 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-1.0.13.1 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-2.0.13.1 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-0.9.13 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-1.0.13 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-2.0.13 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js
foreman_rh_cloud-0.9.12 webpack/ForemanInventoryUpload/Components/AccountList/__tests__/AccountListHelper.test.js