Sha256: 713d1351fa9f8382bc64dc984ec189097722fa924b45087fb220480769628e3f

Contents?: true

Size: 1.79 KB

Versions: 19

Compression:

Stored size: 1.79 KB

Contents

import Immutable from 'seamless-immutable';

const groupedSubscriptions = Immutable({
  RH00001: {
    open: false,
    subscriptions: [
      {
        id: 1,
        name: 'Alpha',
        quantity: 10,
        consumed: 0,
        product_id: 'RH00001',
      },
      {
        id: 2,
        name: 'Alpha',
        quantity: 15,
        consumed: 5,
        product_id: 'RH00001',
      },
    ],
  },
  RH00002: {
    open: false,
    subscriptions: [
      {
        id: 3,
        name: 'Charlie',
        quantity: 10,
        consumed: 0,
        product_id: 'RH00002',
      },
    ],
  },
  RH00003: {
    open: false,
    subscriptions: [
      {
        id: 4,
        name: 'Bravo',
        quantity: 100,
        consumed: 0,
        product_id: 'RH00003',
      },
    ],
  },
  RH00004: {
    open: false,
    subscriptions: [
      {
        id: 5,
        name: 'Delta',
        quantity: 15,
        consumed: 5,
        product_id: 'RH00004',
      },
    ],
  },
});

export const subOne = Immutable({
  consumed: 0,
  id: 1,
  maxQuantity: 60,
  name: 'Alpha',
  product_id: 'RH00001',
  quantity: 10,
  upstreamAvailable: 50,
  upstreamAvailableLoaded: true,
});

export const subTwo = Immutable({
  consumed: 0,
  id: 3,
  maxQuantity: -1,
  name: 'Charlie',
  product_id: 'RH00002',
  quantity: 10,
  upstreamAvailable: -1,
  upstreamAvailableLoaded: true,
});

export const subThree = Immutable({
  consumed: 0,
  id: 4,
  maxQuantity: 200,
  name: 'Bravo',
  product_id: 'RH00003',
  quantity: 100,
  upstreamAvailable: 100,
  upstreamAvailableLoaded: true,
});

export const subFour = Immutable({
  consumed: 5,
  id: 5,
  maxQuantity: 65,
  name: 'Delta',
  product_id: 'RH00004',
  quantity: 15,
  upstreamAvailable: 50,
  upstreamAvailableLoaded: true,
});

export default groupedSubscriptions;

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
katello-3.13.4 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.13.3 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.13.2 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.13.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.13.0 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.13.0.rc2.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.13.0.rc2 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.12.3 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.12.2 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.13.0.rc1 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.12.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.11.2 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.12.0 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.12.0.rc2 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.12.0.rc1 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.11.1 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.11.0 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.11.0.rc2 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js
katello-3.11.0.rc1 webpack/scenes/Subscriptions/components/SubscriptionsTable/__tests__/SubscriptionsTable.fixtures.js