@travetto/model-query 4.1.3 → 4.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/support/test/crud.ts +2 -2
package/package.json
CHANGED
package/support/test/crud.ts
CHANGED
|
@@ -63,8 +63,8 @@ export abstract class ModelQueryCrudSuite extends BaseModelSuite<ModelQueryCrudS
|
|
|
63
63
|
const promises = todo1v.map(x => svc.updateOneWithQuery(Todo, x, { where: { version: todo1.version } }));
|
|
64
64
|
|
|
65
65
|
const results = await Promise.allSettled(promises);
|
|
66
|
-
const rejected = results.filter(
|
|
67
|
-
const fulfilled = results.filter(
|
|
66
|
+
const rejected = results.filter(x => x.status === 'rejected');
|
|
67
|
+
const fulfilled = results.filter(x => x.status === 'fulfilled');
|
|
68
68
|
|
|
69
69
|
for (const el of rejected) {
|
|
70
70
|
assert(el.reason instanceof NotFoundError);
|