Esempio n. 1
0
		it( 'should return an action when a blog sticker is removed', () => {
			const action = removeBlogSticker( 123, 'broken-in-reader' );
			expect( action ).to.deep.equal( {
				type: SITES_BLOG_STICKER_REMOVE,
				payload: { blogId: 123, stickerName: 'broken-in-reader' },
			} );
		} );
Esempio n. 2
0
export const receiveBlogStickerAddError = action => [
	errorNotice( translate( 'Sorry, we had a problem adding that sticker. Please try again.' ) ),
	bypassDataLayer( removeBlogSticker( action.payload.blogId, action.payload.stickerName ) ),
];