Sha256: b86e5e9de49e1c2d01eb03da61e2b6b6f4ae9fd6994321a45fa02937f1b36d21

Contents?: true

Size: 575 Bytes

Versions: 31

Compression:

Stored size: 575 Bytes

Contents

const buildContentView = id => ({
  id,
  composite: 'false',
  name: `contentView${id}`,
  environments: [],
  repositories: [],
  versions: [],
  last_published: 'Not Yet Published',
});

const createBasicCVs = (amount) => {
  const response = {
    total: 100,
    subtotal: 100,
    page: 1,
    per_page: 20,
    error: null,
    search: null,
    sort: {
      by: 'name',
      order: 'asc',
    },
    results: [],
  };

  [...Array(amount).keys()].forEach((_, i) => response.results.push(buildContentView(i)));

  return response;
};

export default createBasicCVs;

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
katello-4.0.3 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.5 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-4.0.2.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-4.0.2 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.4 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-4.0.1.2 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.3.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-4.0.1.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.3 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-4.0.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-4.0.0 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-4.0.0.rc3.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-4.0.0.rc3 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.2.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.2 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.17.3 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-4.0.0.rc2 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.1.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.17.2 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-4.0.0.rc1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js