Skip to content

Commit 354ac06

Browse files
committed
Update line number for add-to-basket event in tracking schema
1 parent f7c4f93 commit 354ac06

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

tests/analyzeGo.test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ test.describe('analyzeGoFile', () => {
7272
assert.ok(snowplowEvent);
7373
assert.strictEqual(snowplowEvent.source, 'snowplow');
7474
assert.strictEqual(snowplowEvent.functionName, 'snowplowTrack');
75-
assert.strictEqual(snowplowEvent.line, 87);
75+
assert.strictEqual(snowplowEvent.line, 88);
7676
assert.deepStrictEqual(snowplowEvent.properties, {
7777
Category: { type: 'string' },
7878
Property: { type: 'string' },
@@ -210,7 +210,7 @@ test.describe('analyzeGoFile', () => {
210210
assert.ok(eventMap['add-to-basket']);
211211
assert.strictEqual(eventMap['add-to-basket'].eventName, 'add-to-basket');
212212
assert.strictEqual(eventMap['add-to-basket'].source, 'snowplow');
213-
assert.strictEqual(eventMap['add-to-basket'].line, 87);
213+
assert.strictEqual(eventMap['add-to-basket'].line, 88);
214214
assert.strictEqual(eventMap['add-to-basket'].functionName, 'snowplowTrack');
215215
assert.deepStrictEqual(eventMap['add-to-basket'].properties, {
216216
Category: { type: 'string' },

tests/fixtures/go/tracking-schema-go.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ events:
6666
add-to-basket:
6767
implementations:
6868
- path: main.go
69-
line: 87
69+
line: 88
7070
function: snowplowTrack
7171
destination: snowplow
7272
properties:

tests/fixtures/tracking-schema-all.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ events:
8888
add-to-basket:
8989
implementations:
9090
- path: go/main.go
91-
line: 87
91+
line: 88
9292
function: snowplowTrack
9393
destination: snowplow
9494
- path: python/main.py

0 commit comments

Comments
 (0)