Skip to content

Commit 218225f

Browse files
committed
wip
1 parent b170e99 commit 218225f

File tree

1 file changed

+2
-4
lines changed
  • packages/signals/signals-integration-tests/src/tests/signals-vanilla

1 file changed

+2
-4
lines changed

packages/signals/signals-integration-tests/src/tests/signals-vanilla/reset.test.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff 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) => {
2422
test('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>(() => {

0 commit comments

Comments
 (0)