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