Project:
View Issue Details[ Jump to Notes ] | [ Issue History ] [ Print ] | |||||||
ID | ||||||||
0045750 | ||||||||
Type | Category | Severity | Reproducibility | Date Submitted | Last Update | |||
defect | [Retail Modules] Web POS | minor | have not tried | 2021-01-19 12:49 | 2021-01-26 08:00 | |||
Reporter | shuehner | View Status | public | |||||
Assigned To | ranjith_qualiantech_com | |||||||
Priority | normal | Resolution | fixed | Fixed in Version | ||||
Status | closed | Fix in branch | Fixed in SCM revision | |||||
Projection | none | ETA | none | Target Version | ||||
OS | Any | Database | Any | Java version | ||||
OS Version | Database version | Ant version | ||||||
Product Version | SCM revision | |||||||
Review Assigned To | ||||||||
Regression level | ||||||||
Regression date | ||||||||
Regression introduced in release | ||||||||
Regression introduced by commit | ||||||||
Triggers an Emergency Pack | No | |||||||
Summary | 0045750: do not use global scope in jest tests (fix new cases) | |||||||
Description | Currently many jest tests are using the global scope, mainly to simulate OB object. This will not be allowed by Babel which will be required by 0044751 to support jest tests with JSX. This is clone of 44752 bug to cover new cases added since then. - org.openbravo.retail.sessions web-test/model/business-object/cashup/Cashup-processCashManagements-AddHook.test.js - org.openbravo.retail.giftcards web-test/model/business-object/cashup/Cashup-processCashManagements-ActionPreparation.test.js web-test/model/business-object/cashup/Cashup-processCashManagements-AddHook.test.js | |||||||
Steps To Reproduce | run tests in strict mode which does not allow global: ReferenceError: OB is not defined 9 | /* global global */ 10 | > 11 | OB = { | ^ 12 | App: { 13 | Class: {} 14 | }, | |||||||
Proposed Solution | Use global object instead of global scope. | |||||||
Tags | No tags attached. | |||||||
Attached Files | ||||||||
Relationships [ Relation Graph ] [ Dependency Graph ] | |||||||||||||||
|
Issue History | |||
Date Modified | Username | Field | Change |
2021-01-19 12:49 | shuehner | New Issue | |
2021-01-19 12:49 | shuehner | Assigned To | => Retail |
2021-01-19 12:49 | shuehner | Triggers an Emergency Pack | => No |
2021-01-19 12:49 | shuehner | Issue generated from | 0044752 |
2021-01-19 12:49 | shuehner | Relationship added | related to 0044752 |
2021-01-19 12:55 | shuehner | Relationship added | related to 0045019 |
2021-01-19 14:02 | javietxe | Issue Monitored: javietxe | |
2021-01-25 10:44 | ranjith_qualiantech_com | Assigned To | Retail => ranjith_qualiantech_com |
2021-01-25 11:26 | ranjith_qualiantech_com | Status | new => scheduled |
2021-01-26 02:01 | hgbot | Note Added: 0125763 | |
2021-01-26 02:01 | hgbot | Note Added: 0125764 | |
2021-01-26 07:59 | hgbot | Note Added: 0125773 | |
2021-01-26 07:59 | hgbot | Note Added: 0125774 | |
2021-01-26 08:00 | hgbot | Resolution | open => fixed |
2021-01-26 08:00 | hgbot | Status | scheduled => closed |
2021-01-26 08:00 | hgbot | Note Added: 0125775 | |
2021-01-26 08:00 | hgbot | Note Added: 0125776 |
Copyright © 2000 - 2009 MantisBT Group |