Sha256: c1062f25f316481ea22a82ceb4ff3f2341251787757a8de188301c99b1e9d495

Contents?: true

Size: 391 Bytes

Versions: 55

Compression:

Stored size: 391 Bytes

Contents

import { readableCron } from '../JobsTabHelper';

describe('JobTabsHelper', () => {
  it('readableCron', () => {
    expect(readableCron('01 * * * *')).toBe('hourly');
    expect(readableCron('01 01 * * *')).toBe('daily');
    expect(readableCron('01 01 * * 01')).toBe('weekly');
    expect(readableCron('01 01 01 * *')).toBe('monthly');
    expect(readableCron()).toBe('custom');
  });
});

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
foreman_ansible-15.0.2 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-15.0.1 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-15.0.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-14.2.2 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-14.2.1 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-13.0.7 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-14.2.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-14.1.1 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-14.1.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-13.0.5 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-14.0.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-13.0.4 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-13.0.3 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-13.0.2 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-13.0.1 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-13.0.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-12.0.7 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-10.4.4 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-7.1.8 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-12.0.6 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js