@travetto/model 3.3.6 → 3.3.8

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@travetto/model",
3
- "version": "3.3.6",
3
+ "version": "3.3.8",
4
4
  "description": "Datastore abstraction for core operations.",
5
5
  "keywords": [
6
6
  "datastore",
@@ -26,14 +26,14 @@
26
26
  "directory": "module/model"
27
27
  },
28
28
  "dependencies": {
29
- "@travetto/config": "^3.3.4",
30
- "@travetto/di": "^3.3.3",
31
- "@travetto/registry": "^3.3.3",
32
- "@travetto/schema": "^3.3.4"
29
+ "@travetto/config": "^3.3.5",
30
+ "@travetto/di": "^3.3.4",
31
+ "@travetto/registry": "^3.3.4",
32
+ "@travetto/schema": "^3.3.5"
33
33
  },
34
34
  "peerDependencies": {
35
- "@travetto/cli": "^3.3.5",
36
- "@travetto/test": "^3.3.5"
35
+ "@travetto/cli": "^3.3.6",
36
+ "@travetto/test": "^3.3.6"
37
37
  },
38
38
  "peerDependenciesMeta": {
39
39
  "@travetto/cli": {
@@ -143,6 +143,12 @@ export abstract class ModelCrudSuite extends BaseModelSuite<ModelCrudSupport> {
143
143
  assert(!('street2' in o3.address));
144
144
  }
145
145
 
146
+ @Test('Verify update partial on missing item fails')
147
+ async testMissingUpdatePartial() {
148
+ const service = await this.service;
149
+ await assert.rejects(() => service.updatePartial(User2, { id: '-1' }), NotFoundError);
150
+ }
151
+
146
152
  @Test('Verify partial update with field removal and lists')
147
153
  async testPartialUpdateList() {
148
154
  const service = await this.service;