Commit Graph

1 Commits

Author SHA1 Message Date
Pierre Fritsch
e2902640e3 Add test to illustrate how to call actions locally (#276)
* Add test to illustrate how to call actions locally

Add the code sample from the capire section [Unbound Actions / Functions](https://cap.cloud.sap/docs/node.js/services#-unbound-actions--functions) as a test in the code sample repository.

Signed-off-by: Pierre Fritsch <[email protected]>

* Wrap the action calls into a transaction

Signed-off-by: Pierre Fritsch <[email protected]>

* Add assertions

Signed-off-by: Pierre Fritsch <[email protected]>

* Update test/consuming-actions.test.js

Co-authored-by: sjvans <[email protected]>

* Update test/consuming-actions.test.js

Co-authored-by: sjvans <[email protected]>

* Update test/consuming-actions.test.js

Co-authored-by: sjvans <[email protected]>

* Update test/consuming-actions.test.js

Co-authored-by: sjvans <[email protected]>

* Update test/consuming-actions.test.js

Co-authored-by: sjvans <[email protected]>

* Update test/consuming-actions.test.js

Co-authored-by: sjvans <[email protected]>

* Update test/consuming-actions.test.js

---------

Signed-off-by: Pierre Fritsch <[email protected]>
Co-authored-by: sjvans <[email protected]>
2024-07-29 20:38:54 +02:00