bldrs-ai / Share

Share is a web-based BIM & CAD collaboration platform.
http://bldrs.ai
105 stars 31 forks source link

System: Refactor asserts into test and assert, or import framework #117

Open pablo-mayrgundter opened 2 years ago

pablo-mayrgundter commented 2 years ago

This is a tracking bug for TODOs.

src/utils/asserts.js should import tests for each function that test the relevant conditions, then just add throw Error if test is false. This is to help with cases where the caller might want to log (as warn or error) instead of fail.

pablo-mayrgundter commented 2 years ago

e.g. in src/utils/asserts.js