Skip to content

Commit 82276ce

Browse files
committed
lint
1 parent 9480764 commit 82276ce

2 files changed

Lines changed: 17 additions & 10 deletions

File tree

cspell.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"rerank",
4848
"atcs",
4949
"testdata",
50-
"Bytespider"
50+
"Bytespider",
51+
"Timespans"
5152
]
5253
}

spec/src/modules/tracker.js

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10091,7 +10091,7 @@ describe(`ConstructorIO - Tracker${bundledDescriptionSuffix}`, () => {
1009110091
});
1009210092

1009310093
describe.only('trackAssistantPDPOutOfView', () => {
10094-
const requiredParameters = { itemId: '1', itemName: 'item1', };
10094+
const requiredParameters = { itemId: '1', itemName: 'item1' };
1009510095
const optionalParameters = {
1009610096
section: 'Products',
1009710097
variationId: '2',
@@ -10384,7 +10384,7 @@ describe(`ConstructorIO - Tracker${bundledDescriptionSuffix}`, () => {
1038410384
});
1038510385

1038610386
describe.only('trackAssistantPDPFocus', () => {
10387-
const requiredParameters = { itemId: '1', itemName: 'item1', };
10387+
const requiredParameters = { itemId: '1', itemName: 'item1' };
1038810388
const optionalParameters = {
1038910389
section: 'Products',
1039010390
variationId: '2',
@@ -10677,7 +10677,7 @@ describe(`ConstructorIO - Tracker${bundledDescriptionSuffix}`, () => {
1067710677
});
1067810678

1067910679
describe.only('trackAssistantPDPQuestionClick', () => {
10680-
const requiredParameters = { itemId: '1', itemName: 'item1', question: 'Why choose this?', };
10680+
const requiredParameters = { itemId: '1', itemName: 'item1', question: 'Why choose this?' };
1068110681
const optionalParameters = {
1068210682
section: 'Products',
1068310683
variationId: '2',
@@ -10816,7 +10816,9 @@ describe(`ConstructorIO - Tracker${bundledDescriptionSuffix}`, () => {
1081610816
done();
1081710817
});
1081810818

10819-
expect(tracker.trackAssistantPDPQuestionClick(Object.assign(requiredParameters, optionalParameters))).to.equal(true);
10819+
expect(tracker.trackAssistantPDPQuestionClick(
10820+
Object.assign(requiredParameters, optionalParameters),
10821+
)).to.equal(true);
1082010822
});
1082110823

1082210824
it('Should throw an error when no parameters are provided', () => {
@@ -10971,7 +10973,7 @@ describe(`ConstructorIO - Tracker${bundledDescriptionSuffix}`, () => {
1097110973
});
1097210974

1097310975
describe.only('trackAssistantPDPQuestionSubmit', () => {
10974-
const requiredParameters = { itemId: '1', itemName: 'item1', question: 'Why choose this?', };
10976+
const requiredParameters = { itemId: '1', itemName: 'item1', question: 'Why choose this?' };
1097510977
const optionalParameters = {
1097610978
section: 'Products',
1097710979
variationId: '2',
@@ -11110,7 +11112,9 @@ describe(`ConstructorIO - Tracker${bundledDescriptionSuffix}`, () => {
1111011112
done();
1111111113
});
1111211114

11113-
expect(tracker.trackAssistantPDPQuestionSubmit(Object.assign(requiredParameters, optionalParameters))).to.equal(true);
11115+
expect(tracker.trackAssistantPDPQuestionSubmit(
11116+
Object.assign(requiredParameters, optionalParameters),
11117+
)).to.equal(true);
1111411118
});
1111511119

1111611120
it('Should throw an error when no parameters are provided', () => {
@@ -11265,7 +11269,7 @@ describe(`ConstructorIO - Tracker${bundledDescriptionSuffix}`, () => {
1126511269
});
1126611270

1126711271
describe.only('trackAssistantPDPAnswerView', () => {
11268-
const requiredParameters = { itemId: '1', itemName: 'item1', question: 'Why choose this?', answerText: 'This product is awesome!', };
11272+
const requiredParameters = { itemId: '1', itemName: 'item1', question: 'Why choose this?', answerText: 'This product is awesome!' };
1126911273
const optionalParameters = {
1127011274
section: 'Products',
1127111275
variationId: '2',
@@ -11562,7 +11566,7 @@ describe(`ConstructorIO - Tracker${bundledDescriptionSuffix}`, () => {
1156211566
});
1156311567

1156411568
describe.only('trackAssistantPDPAnswerFeedback', () => {
11565-
const requiredParameters = { itemId: '1', itemName: 'item1', feedbackLabel: 'thumbs_up', };
11569+
const requiredParameters = { itemId: '1', itemName: 'item1', feedbackLabel: 'thumbs_up' };
1156611570
const optionalParameters = {
1156711571
section: 'Products',
1156811572
variationId: '2',
@@ -11702,7 +11706,9 @@ describe(`ConstructorIO - Tracker${bundledDescriptionSuffix}`, () => {
1170211706
done();
1170311707
});
1170411708

11705-
expect(tracker.trackAssistantPDPAnswerFeedback(Object.assign(requiredParameters, optionalParameters))).to.equal(true);
11709+
expect(tracker.trackAssistantPDPAnswerFeedback(
11710+
Object.assign(requiredParameters, optionalParameters),
11711+
)).to.equal(true);
1170611712
});
1170711713

1170811714
it('Should throw an error when no parameters are provided', () => {

0 commit comments

Comments
 (0)