Sha256: 2cf0e3822fc0c67e5f116722158f6b4a669a210fac1b9a6b7202b0c2b3b266ca
Contents?: true
Size: 447 Bytes
Versions: 3
Compression:
Stored size: 447 Bytes
Contents
import { testActionSnapshotWithFixtures } from '@theforeman/test'; import API from 'foremanReact/API'; import { handleSync } from '../SyncButtonActions'; import { successResponse } from './SyncButtonFixtures'; jest.mock('foremanReact/API'); API.post.mockImplementation(async () => successResponse); const fixtures = { 'should handleSync': () => handleSync(), }; describe('SyncButton actions', () => testActionSnapshotWithFixtures(fixtures));
Version data entries
3 entries across 3 versions & 1 rubygems