cap-js / cds-dbs

Monorepo for SQL Database Services for CAP
https://cap.cloud.sap/docs/
Apache License 2.0
37 stars 11 forks source link

test: Add tests for computed elements #787

Closed BobdenOs closed 2 months ago

johannes-vogel commented 2 months ago

Is there also a runtime query that tests this?

BobdenOs commented 2 months ago

Is there also a runtime query that tests this?

All the objects defined in the module.exports are being inserted into the table definitions. Then afterwards they are being read and checked for correctness. Where all properties starting with = are used as expectation when the inserted property is different then the returned result. (test, example)