@projectcaluma/ember-testing 11.0.0-beta.27 → 11.0.0-beta.28

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.
@@ -191,7 +191,12 @@ export default class BaseMock {
191
191
  _,
192
192
  { input: { clientMutationId = faker.datatype.uuid(), slug, id, ...args } }
193
193
  ) {
194
- const identifier = slug ? { slug } : { id };
194
+ // Sometimes we pass the identifier as property `slug` (e.g in `saveForm`),
195
+ // sometimes as `id` (e.g. in `saveDocument`) and sometimes as the camelized
196
+ // name of the type (e.g in `saveWorkItem`).
197
+ const identifier = slug
198
+ ? { slug }
199
+ : { id: id ?? args[camelize(this.type)] };
195
200
 
196
201
  const relKeys = this.schema.modelFor(camelize(this.type)).foreignKeys;
197
202
 
@@ -289,7 +289,7 @@ export default function (server, groups) {
289
289
  to: g2,
290
290
  deadline: faker.date.past(),
291
291
  },
292
- { id: "6bbdc36a-3174-4578-93d4-0cb84d3dab97" }
292
+ { id: "6bbdc36a-3174-4578-93d4-0cb84d3dab97", meta: {} }
293
293
  ),
294
294
  });
295
295
  confirm({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-testing",
3
- "version": "11.0.0-beta.27",
3
+ "version": "11.0.0-beta.28",
4
4
  "description": "Ember addon for testing with Caluma addons.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -21,7 +21,7 @@
21
21
  "ember-apollo-client": "~4.0.2",
22
22
  "ember-auto-import": "^2.4.2",
23
23
  "ember-cli-babel": "^7.26.11",
24
- "ember-cli-htmlbars": "^6.1.0",
24
+ "ember-cli-htmlbars": "^6.1.1",
25
25
  "ember-cli-mirage": "^3.0.0-alpha.3",
26
26
  "ember-fetch": "^8.1.2",
27
27
  "ember-inflector": "^4.0.2",