Sha256: ac6b6d78fc2ac4567d850696b82e5c78583b496f7cbf44f26a2ea68d8ce34e3c

Contents?: true

Size: 518 Bytes

Versions: 22

Compression:

Stored size: 518 Bytes

Contents

import { pickSort, buildQuery } from '../WebhooksPageHelpers';

import {
  querySort,
  pickedQuery,
  queryParams,
  resultParams,
} from '../WebhooksIndexPage/__tests__/WebhooksIndexPage.fixtures';

describe('pickSort', () => {
  it('should pick sort from query', () => {
    expect(pickSort(querySort, {})).toStrictEqual(pickedQuery);
  });
});

describe('buildQuery', () => {
  it('should return params from query if present', () => {
    expect(buildQuery(queryParams, {})).toStrictEqual(resultParams);
  });
});

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
foreman_webhooks-4.0.0 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.2.3 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.2.2 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.1.1 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.2.1 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.2.0 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.1.0 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.0.5 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-2.0.3 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.0.4 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-2.0.2 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.0.3 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.0.2 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.0.1 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-2.0.1 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-3.0.0 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-2.0.0 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-1.1.0 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-1.0.0 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-0.0.3 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js