Sha256: ba850d36a6bb5fae8dc8ceecb47a367e41091ae9df619eda64a1e0a435945322
Contents?: true
Size: 491 Bytes
Versions: 8
Compression:
Stored size: 491 Bytes
Contents
import { testActionSnapshotWithFixtures } from '@theforeman/test'; import API from 'foremanReact/API'; import { handleToggle } from '../AutoUploadSwitcherActions'; import { handleToggleResponse } from '../AutoUploadSwitcher.fixtures'; jest.mock('foremanReact/API'); API.post.mockImplementation(async () => handleToggleResponse); const fixtures = { 'should handleToggle': () => handleToggle(), }; describe('AutoUploadSwitcher actions', () => testActionSnapshotWithFixtures(fixtures));
Version data entries
8 entries across 8 versions & 1 rubygems