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
client2.getTreatmentWithConfig('qc_team');// Validate that the impression is the same.
52
52
client3.getTreatment('qc_team',testAttrs);
@@ -58,7 +58,8 @@ export default function (assert) {
58
58
treatment: 'no',
59
59
bucketingKey: 'impr_bucketing_2',
60
60
label: 'default rule',
61
-
pt: undefined
61
+
pt: undefined,
62
+
properties: undefined
62
63
};
63
64
64
65
assert.equal(listener.logImpression.callCount,4,'Impression listener logImpression method should be called after we call client.getTreatment, once per each impression generated.');
@@ -71,7 +72,7 @@ export default function (assert) {
assert.true(dependencyChildImpr,'Split we wanted to evaluate should be present on the impressions.');
59
-
assert.false(resp.some(e=>e.f==='hierarchical_dep_always_on'),'Parent split evaluations should not result in impressions.');
60
-
assert.false(resp.some(e=>e.f==='hierarchical_dep_hierarchical'),'No matter how deep is the chain.');
61
-
assert.true(splitWithConfigImpr,'Split evaluated with config should have generated an impression too.');
62
-
assert.false(Object.prototype.hasOwnProperty.call(splitWithConfigImpr.i[0],'configuration'),'Impressions do not change with configuration evaluations.');
63
-
assert.false(Object.prototype.hasOwnProperty.call(splitWithConfigImpr.i[0],'config'),'Impressions do not change with configuration evaluations.');
assert.true(listener.logImpression.callCount,4,'Impression listener logImpression method should be called after we call client.getTreatment, once per each impression generated.');
48
+
assert.equal(listener.logImpression.callCount,4,'Impression listener logImpression method should be called after we call client.getTreatment, once per each impression generated.');
assert.equal(output.t,expected.treatment,'Present impressions should have the correct treatment.');
76
76
assert.equal(output.r,expected.label,'Present impressions should have the correct label.');
77
77
assert.equal(output.c,expected.changeNumber,'Present impressions should have the correct changeNumber.');
78
+
assert.equal(output.properties,expected.properties,'Present impressions should have the correct properties.');
78
79
assert.true(output.m>=(performedWhenReady ? readyEvaluationsStart : evaluationsStart)&&output.m<=evaluationsEnd,'Present impressions should have the correct timestamp (test with error margin).');
0 commit comments