1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00
market/tests/unit
Norby a2fe2fdee0
Set, edit, and display timeout (#324)
* added timeout to publish asset

* add timeout to edit asses(wip)

* added timout to edit metadata form

* fixed wrong constant name

* fix options autosorting

Signed-off-by: mihaisc <mihai.scarlat@smartcontrol.ro>

* Fixed autosorting in edit form

* Added "1 day" to timeout options

* Changed ternary operators to switch

* Feature/asset timeout (#325)

* Compute asset timeout

* Code styled

* Deleted unused import

* Display timeout for buy/download

* Switch case for timeout values

* Moved mapping function to /utils/metadata

* display timeout option not matching defined ones, map seconds to string

* handle update with no predefined timeout value, add weeks to map method

* Display timeout on button

* consume button text logic change

* whoops, revert wrong change

* small millisecondsToStr refactor

* copy tweaks

* template literal logic restore

* keep tweaking help text logic

* abstract into method
* change whole condition logic
* tweak hasDatatoken/hasPreviousOrder combination condition

* Unified seconds to string conversion methods

* getHelpText tweaks, small refactor

* copy editing, limit hardcoded timeout list

* fix mixup of map & filter

* use Timeout as label and be done with it

Co-authored-by: mihaisc <mihai.scarlat@smartcontrol.ro>
Co-authored-by: claudiaHash <49017601+claudiaHash@users.noreply.github.com>
Co-authored-by: Matthias Kretschmann <m@kretschmann.io>
Co-authored-by: Claudia Holhos <clawww1996@gmail.com>
2021-01-22 17:12:48 +01:00
..
__fixtures__ Set, edit, and display timeout (#324) 2021-01-22 17:12:48 +01:00
__mocks__ metadataStore → metadataCache, package updates 2020-10-13 17:06:40 +02:00
components Update metadata, the proper way (#292) 2020-12-10 14:30:40 +01:00
pages displayed search results count (#312) 2021-01-13 10:15:50 +01:00
utils remove unused methods/hooks/components 2020-09-24 12:26:23 +02:00
AssetModel.test.ts case fix 2020-10-01 17:13:19 +02:00
babel.config.js refactor for Gatsby, update all the things 2020-06-30 11:28:49 +02:00
jest.config.js make Jest run 2020-06-30 14:19:27 +02:00
loadershim.js refactor for Gatsby, update all the things 2020-06-30 11:28:49 +02:00
setupTests.ts test & storybook fixes 2020-09-23 11:21:04 +02:00
storyshots.test.tsx trying to make sense of jest and mocking reach router, useWeb3, useOcean, squid 2020-06-30 19:38:02 +02:00
testRender.ts fix search test 2020-06-30 16:22:22 +02:00