From a8aefd3a29e12edf17b71e45eb1b5bb2076e9317 Mon Sep 17 00:00:00 2001 From: Stanley Peng Date: Thu, 24 Oct 2024 23:47:32 -0700 Subject: [PATCH] update comments --- spec/src/modules/tracker.js | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/spec/src/modules/tracker.js b/spec/src/modules/tracker.js index 0fbf0c7..ec358dd 100644 --- a/spec/src/modules/tracker.js +++ b/spec/src/modules/tracker.js @@ -2724,7 +2724,7 @@ describe('ConstructorIO - Tracker', () => { expect(requestParams).to.have.property('_dt'); expect(requestParams).to.have.property('beacon').to.equal('true'); - // Response + // Body expect(bodyParams).to.have.property('result_count').to.equal(snakeCaseParameters.num_results); expect(bodyParams).to.have.property('url').to.equal(snakeCaseParameters.url); expect(bodyParams).to.have.property('result_page').to.equal(snakeCaseParameters.result_page); @@ -2764,7 +2764,7 @@ describe('ConstructorIO - Tracker', () => { expect(requestParams).to.have.property('_dt'); expect(requestParams).to.have.property('beacon').to.equal('true'); - // Response + // Body expect(bodyParams).to.have.property('result_count').to.equal(requiredParameters.numResults); expect(bodyParams).to.have.property('url').to.equal(optionalParameters.url); expect(bodyParams).to.have.property('result_page').to.equal(optionalParameters.resultPage); @@ -2803,7 +2803,7 @@ describe('ConstructorIO - Tracker', () => { expect(fetchSpy).to.have.been.called; expect(requestParams).to.have.property('ui').to.equal(userId); - // Response + // Body expect(bodyParams).to.have.property('ui').to.equal(userId); expect(responseParams).to.have.property('method').to.equal('POST'); @@ -3210,7 +3210,7 @@ describe('ConstructorIO - Tracker', () => { tracker.on('success', (responseParams) => { const bodyParams = helpers.extractBodyParamsFromFetch(fetchSpy); - // Request + // Body expect(fetchSpy).to.have.been.called; expect(bodyParams).to.have.property('result_count').to.equal(parameters.numResults); expect(bodyParams).to.have.property('items').to.deep.equal(formattedItems); @@ -3240,7 +3240,7 @@ describe('ConstructorIO - Tracker', () => { tracker.on('success', (responseParams) => { const bodyParams = helpers.extractBodyParamsFromFetch(fetchSpy); - // Request + // Body expect(fetchSpy).to.have.been.called; expect(bodyParams).to.have.property('result_count').to.equal(parameters.numResults); expect(bodyParams).to.have.property('items').to.deep.equal(formattedItems);