htammen/n-odata-server

Create an example for Unit tests

Closed this issue · 3 comments

More unit tests should be implemented. Therefore some examples how to handle the promises that are spread around the source code should be created

I'm creating some unit tests for metadata handling

Created some tests in test/base/metadata. These tests use features like "testing promises" and "stubbing referenced modules".
Furthermore I changed the scripts (package.json) for test and coverage. These scripts now perform tests recursively.

see 16fcdfb

created some tests in test/odata_get.test.ts