File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
packages/signals/signals/src/core/middleware/signals-ingest/__tests__ Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import { createSuccess } from '@segment/analytics-next/src/test-helpers/factories'
22import unfetch from 'unfetch'
3+ import { getPageData } from '../../../../lib/page-data'
34import {
45 createInstrumentationSignal ,
56 createNetworkSignal ,
@@ -23,8 +24,7 @@ describe(SignalsIngestClient, () => {
2324 it ( 'makes an instrumentation track call via the analytics api' , async ( ) => {
2425 expect ( client ) . toBeTruthy ( )
2526 const signal = createInstrumentationSignal ( {
26- type : 'instrumentation' ,
27- foo : 'bar' ,
27+ type : 'track' ,
2828 } )
2929 const ctx = await client . send ( signal )
3030
@@ -34,8 +34,9 @@ describe(SignalsIngestClient, () => {
3434 index : 0 ,
3535 data : {
3636 rawEvent : {
37- foo : 'bar ' ,
37+ type : 'track ' ,
3838 } ,
39+ page : getPageData ( ) ,
3940 } ,
4041 } )
4142 } )
You can’t perform that action at this time.
0 commit comments