Openbravo Issue Tracking System - Retail Modules
View Issue Details
0045814Retail ModulesWeb POSpublic2021-01-29 13:132021-02-01 07:14
shuehner 
ranjith_qualiantech_com 
normalminorhave not tried
closedfixed 
5
 
 
No
0045814: jest test in nexoprovider fail with --strict-mode
Jest test in this module org.openbravo.retail.nexoprovider fail when being run in strict mode (see 45019).

Those should be fixed

List of errors:
- ReferenceError: sourceIsEvt is not defined
  on line:
  > 18 | const { Jsonix } = require('jsonix');

Always same topic just in a couple of different js files.
node --use_strict node_modules/.bin/jest
    ReferenceError: sourceIsEvt is not defined
No tags attached.
related to defect 0045820 new Retail Two jest tests have been disabled in Nexo provider as they imported enyo and could not be run in strict mode 
blocks feature request 0045019 closed Retail run jest tests in strict mode 
Issue History
2021-01-29 13:13shuehnerNew Issue
2021-01-29 13:13shuehnerAssigned To => Retail
2021-01-29 13:13shuehnerTriggers an Emergency Pack => No
2021-01-29 13:13shuehnerRelationship addedblocks 0045019
2021-01-31 13:44ranjith_qualiantech_comAssigned ToRetail => ranjith_qualiantech_com
2021-02-01 04:23hgbotNote Added: 0125897
2021-02-01 06:25ranjith_qualiantech_comStatusnew => scheduled
2021-02-01 07:13marvintmRelationship addedrelated to 0045820
2021-02-01 07:14hgbotResolutionopen => fixed
2021-02-01 07:14hgbotStatusscheduled => closed
2021-02-01 07:14hgbotNote Added: 0125901
2021-02-01 07:14hgbotNote Added: 0125902

Notes
(0125897)
hgbot   
2021-02-01 04:23   
Merge Request created: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.nexoprovider/-/merge_requests/7 [^]
(0125901)
hgbot   
2021-02-01 07:14   
Directly closing issue as related merge request is already approved.

Repository: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.nexoprovider [^]
Changeset: 85288b6ec3b7c56c33f278a892aa8c1909b50b86
Author: Ranjith S R <ranjith@qualiantech.com>
Date: 2021-02-01T08:50:59+05:30
URL: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.nexoprovider/-/commit/85288b6ec3b7c56c33f278a892aa8c1909b50b86 [^]

Fixed ISSUE-45814: Removed enyo dependent from jest test
* Updated jsonix reference

---
M web-test/payment.test.js
M web-test/rootnexo.js
M web-test/sample.test.js
M web-test/voidcheck.test.js
M web/org.openbravo.retail.nexoprovider/lib/jsonix/Jsonix-all.js
---
(0125902)
hgbot   
2021-02-01 07:14   
Merge request merged: https://gitlab.com/openbravo/product/pmods/org.openbravo.retail.nexoprovider/-/merge_requests/7 [^]