@@ -196,6 +196,7 @@ describe("raven-for-redux", () => {
196196action => `transformed action${ action . type } `
197197) ;
198198context . getUserContext = jest . fn ( state => `user context${ state . value } ` ) ;
199+ context . getTags = jest . fn ( state => `tags${ state . value } ` ) ;
199200context . breadcrumbDataFromAction = jest . fn ( action => ( {
200201extra :action . extra
201202} ) ) ;
@@ -211,7 +212,8 @@ describe("raven-for-redux", () => {
211212actionTransformer :context . actionTransformer ,
212213breadcrumbDataFromAction :context . breadcrumbDataFromAction ,
213214filterBreadcrumbActions :context . filterBreadcrumbActions ,
214- getUserContext :context . getUserContext
215+ getUserContext :context . getUserContext ,
216+ getTags :context . getTags
215217} )
216218)
217219) ;
@@ -265,6 +267,16 @@ describe("raven-for-redux", () => {
265267"user context 1"
266268) ;
267269} ) ;
270+ it ( "transforms the tags on data callback" , ( ) => {
271+ context . store . dispatch ( { type :"INCREMENT" , extra :"FOO" } ) ;
272+ expect ( ( ) => {
273+ context . store . dispatch ( { type :"THROW" , extra :"BAR" } ) ;
274+ } ) . toThrow ( ) ;
275+ expect ( context . mockTransport ) . toHaveBeenCalledTimes ( 1 ) ;
276+ expect ( context . mockTransport . mock . calls [ 0 ] [ 0 ] . data . tags ) . toEqual (
277+ "tags 1"
278+ ) ;
279+ } ) ;
268280} ) ;
269281describe ( "with multiple data callbaks" , ( ) => {
270282beforeEach ( ( ) => {