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-0.0.2 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js
foreman_webhooks-0.0.1 webpack/ForemanWebhooks/Routes/Webhooks/__tests__/WebhooksPageHelpers.test.js