All Downloads are FREE. Search and download functionalities are using the official Maven repository.

impl.actions.perform.perform.test.js Maven / Gradle / Ivy

The newest version!
import React from 'react'
import configureMockStore from 'redux-mock-store'

import perform from './perform'

const mockStore = configureMockStore()

describe('Тестирование имплов', () => {
    it('Тестирование перформа', () => {
        const store = mockStore({})

        perform({ dispatch: store.dispatch, type: 'DUMMY' })
        expect(store.getActions()[0]).toMatchObject({ type: 'DUMMY' })
    })
})




© 2015 - 2024 Weber Informatics LLC | Privacy Policy