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-3.18.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.0 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.17.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.0.rc2.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.0.rc2 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.17.0 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.18.0.rc1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.17.0.rc2.2 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.17.0.rc2.1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.17.0.rc2 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js
katello-3.17.0.rc1 webpack/scenes/ContentViews/__tests__/basicContentViews.fixtures.js