Sha256: c8b3aad948749015dd7a6f2cf946aa11d7ab092aed68c9f9bb554838e8bbe23c
Contents?: true
Size: 453 Bytes
Versions: 6
Compression:
Stored size: 453 Bytes
Contents
import { testActionSnapshotWithFixtures } from 'react-redux-test-utils'; 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
6 entries across 6 versions & 1 rubygems