File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/signals/signals-integration-tests/src/tests/signals-vanilla Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -7,9 +7,7 @@ import { pTimeout } from '@segment/analytics-core'
77 * If a signal is generated, the signal buffer should be reset
88 * when the user clicks on the complex button.
99 */
10- const basicEdgeFn = `const processSignal = (signal) => {
11-
12-
10+ const edgeFn = `const processSignal = (signal) => {
1311 // create a custom signal to echo out the current signal buffer
1412 if (signal.type === 'userDefined') {
1513 analytics.track('current signal buffer', { signalBuffer: signals.signalBuffer })
@@ -24,7 +22,7 @@ const basicEdgeFn = `const processSignal = (signal) => {
2422test ( 'calls analytics.reset, and resets the signalBuffer after clear' , async ( {
2523 page,
2624} ) => {
27- const indexPage = await new IndexPage ( ) . loadAndWait ( page , basicEdgeFn )
25+ const indexPage = await new IndexPage ( ) . loadAndWait ( page , edgeFn )
2826
2927 await indexPage . addUserDefinedSignal ( { num : 1 } )
3028 const resetCalled = page . evaluate < any > ( ( ) => {
You can’t perform that action at this time.
0 commit comments