Commit Graph

12 Commits

Author SHA1 Message Date
Miroslav Bajtoš 39771be12f
Add a test to verify PersistedModel updateAll
Signed-off-by: Miroslav Bajtoš <mbajtoss@gmail.com>
2019-10-07 10:49:57 +02:00
Maxim Sharai 2aff46a79a
Add tests to verify Model.exists() is working 2019-08-23 10:16:02 +02:00
Agnes Lin 59f70ab3ce chore: update copyrights years 2019-05-07 13:34:15 -04:00
Jannis Ötjengerdes 4108db8945
fix: return null when findById/findOne returns 404
Co-authored-by: Maxim Sharai <maxim.sharai@tispr.com>
Co-authored-by: Jannis Ötjengerdes <joetjengerdes@rightmart.de>
2019-01-21 16:32:41 +01:00
Miroslav Bajtoš 60c081f893
chore: update copyright notice years 2018-01-16 15:55:09 +01:00
Dimitris a3d110b78c
Preserve related models from "include" filter
Before this change, when making a remote call with "include" filter
(for example `findById(11, {include:['children']})`), the related
models were removed from the result.

This commit fixes the implementation to correctly preserve related
models and also to cast them to correct model instances.
2017-12-12 09:39:37 +01:00
Miroslav Bajtoš 55cb88f727
Add eslint to npm test, fix linter issues 2017-12-11 14:51:48 +01:00
Miroslav Bajtoš d6a5c768fd
Refactor tests to use local per-app model registry
Refactor tests to stop sharing global models between different test
suites and use local per-app model registry instead.

Also clean up all test code to use `const` and `let` instead of `var`.
2017-12-11 14:45:43 +01:00
Miroslav Bajtoš fbc013dab7 test: use strict, handle errors 2016-09-01 10:47:13 +02:00
Ryan Graham 17e60c9351
update copyright notices and license 2016-05-06 12:02:21 -07:00
Miroslav Bajtoš 3c42c0a6af test: listen on ephemeral ports 2016-02-05 13:29:43 +01:00
Geoffroy ba1703fbea Clean up tests 2016-01-07 20:08:05 -08:00