theforeman/foreman

View on GitHub
webpack/assets/javascripts/react_app/redux/middlewares/IntervalMiddleware/__tests__/IntervalActions.test.js

Summary

Maintainability
A
0 mins
Test Coverage
import { testActionSnapshotWithFixtures } from '../../../../common/testHelpers';
import { stopInterval, startInterval } from '../IntervalActions';
import { key, intervalID } from '../IntervalFixtures';

const fixtures = {
  'should start interval': () => startInterval(key, intervalID),
  'should stop interval': () => stopInterval(key),
};

describe('Interval actions', () => testActionSnapshotWithFixtures(fixtures));