You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/__tests__/browserSuites/shared-instantiation.spec.js
+7-7Lines changed: 7 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -107,9 +107,9 @@ export default function sharedInstantiationSuite(startWithTT, sdkIgnoresTT, fetc
107
107
constevents=JSON.parse(opts.body);
108
108
109
109
assert.equal(events.length,sdkIgnoresTT ? 2 : 3,'Tracked only valid events');
110
-
assert.equal(events[0].trafficTypeName,`${startWithTT&&!sdkIgnoresTT ? 'start' : 'main'}_tt`,'matching traffic types both binded and provided through client.track()');
111
-
assert.equal(events[1].trafficTypeName,'marcio_tt','matching traffic types both binded and provided through client.track()');
112
-
if(!sdkIgnoresTT)assert.equal(events[2].trafficTypeName,'nico_tt','matching traffic types both binded and provided through client.track()');
110
+
assert.equal(events[0].trafficTypeName,`${startWithTT&&!sdkIgnoresTT ? 'start' : 'main'}_tt`,'matching traffic type provided through client.track()');
111
+
assert.equal(events[1].trafficTypeName,'marcio_tt','matching traffic type provided through client.track()');
112
+
if(!sdkIgnoresTT)assert.equal(events[2].trafficTypeName,'nico_tt','matching traffic type provided through client.track()');
113
113
114
114
finished.next();
115
115
@@ -124,14 +124,14 @@ export default function sharedInstantiationSuite(startWithTT, sdkIgnoresTT, fetc
124
124
}
125
125
126
126
// Shared instance without TT on instantiation
127
-
assert.false(marcioClient.track('marcioEvent'),'If a shared client was created passing only key, no traffic type is binded so we need to provide one for client.track()');
128
-
assert.true(marcioClient.track('marcio_tt','marcioEvent',10),'If a shared client was created passing only key, no traffic type is binded so we need to provide one for client.track()');
127
+
assert.false(marcioClient.track('marcioEvent'),'If a shared client was created passing only key, no traffic type is bound so we need to provide one for client.track()');
128
+
assert.true(marcioClient.track('marcio_tt','marcioEvent',10),'If a shared client was created passing only key, no traffic type is bound so we need to provide one for client.track()');
129
129
130
130
// Shared instance with TT on instantiation
131
131
if(sdkIgnoresTT){
132
-
assert.false(nicolasClient.track('nicoEvent',10),'If a shared client was created passing both key and TT but the SDK ignores TT, the latter doesn\'t get binded to it so it is necessary to provide the traffic type to client.track()');
132
+
assert.false(nicolasClient.track('nicoEvent',10),'If a shared client was created passing both key and TT but the SDK ignores TT, the latter doesn\'t get bound to it so it is necessary to provide the traffic type to client.track()');
133
133
}else{
134
-
assert.true(nicolasClient.track('nicoEvent',10),'If a shared client was created passing both key and TT, the latter gets binded to it so it is not necessary to provide the traffic type to client.track()');
134
+
assert.true(nicolasClient.track('nicoEvent',10),'If a shared client was created passing both key and TT, the latter gets bound to it so it is not necessary to provide the traffic type to client.track()');
0 commit comments