Skip to content

Commit

Permalink
turn comments
Browse files Browse the repository at this point in the history
  • Loading branch information
rmi22186 committed Oct 7, 2024
1 parent 9809c25 commit 34519dd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/BrazeKit-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ var constructor = function () {
eventAttributes
);

return reportEvent;
return reportEvent === true;
}

function logPurchaseEventPerProduct(event) {
Expand Down
6 changes: 4 additions & 2 deletions test/tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -1756,7 +1756,6 @@ user.getUserIdentities is not a function,\n`;
baz: 'bar',
};

debugger;
mParticle.forwarder.process({
EventName: 'eCommerce - Purchase',
EventDataType: MessageType.Commerce,
Expand Down Expand Up @@ -1834,7 +1833,10 @@ user.getUserIdentities is not a function,\n`;

purchaseEventProperties.should.eql(expectedPurchaseEvent);

reportService.event.should.be.ok();
reportService.event.should.have.property(
'EventName',
'eCommerce - Purchase'
);
});

it('should call changeUser and openSession on init with userIdentificationType MPID passed in forwarding settings', function() {
Expand Down

0 comments on commit 34519dd

Please sign in to comment.