Beispiel #1
0
	it( 'should dispatch plugin upload complete action', () => {
		const dispatch = sinon.spy();
		uploadComplete( { dispatch }, { siteId }, SUCCESS_RESPONSE );
		expect( dispatch ).to.have.been.calledWith(
			completePluginUpload( siteId, pluginId )
		);
	} );
Beispiel #2
0
	test( 'should return a plugin upload complete action', () => {
		const dispatch = jest.fn();
		uploadComplete( { siteId }, SUCCESS_RESPONSE )( dispatch, getState );
		expect( dispatch ).toHaveBeenCalledWith( completePluginUpload( siteId, pluginId ) );
	} );