import { http } from 'calypso/state/data-layer/wpcom-http/actions'; import { requestSite } from 'calypso/state/reader/sites/actions'; import { requestReadSite } from '../'; describe( 'read-sites-site', () => { describe( 'requestReadSite', () => { test( 'should dispatch an http request', () => { const blogId = 123; const action = requestSite( blogId ); expect( requestReadSite( action ) ).toMatchObject( http( { apiVersion: '1.1', method: 'GET', path: `/read/sites/${ blogId }`, }, action ) ); } ); } ); } );