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-10.2.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-10.1.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-10.0.1 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-10.0.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-7.1.4 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-9.0.1 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-7.1.3 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-9.0.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-7.1.2 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-7.1.1 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-8.0.1 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-8.0.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-7.0.4 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-7.1.0 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js
foreman_ansible-7.0.3 webpack/components/AnsibleHostDetail/components/JobsTab/__test__/JobsTabHelper.test.js