@projectcaluma/ember-testing 11.0.0-beta.32 → 11.0.0-beta.33

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.
@@ -100,10 +100,7 @@ export function createInquiry(
100
100
  { from, to, remark, deadline },
101
101
  workItemAttrs = {}
102
102
  ) {
103
- const document = server.create("document", {
104
- formId: "inquiry",
105
- modifiedContentByUser: "1",
106
- });
103
+ const document = server.create("document", { formId: "inquiry" });
107
104
 
108
105
  server.create("answer", {
109
106
  document,
@@ -138,10 +135,7 @@ export function sendInquiry(server, { inquiry }) {
138
135
  const childCase = server.create("case", {
139
136
  status: "RUNNING",
140
137
  workflowId: "inquiry",
141
- document: server.create("document", {
142
- formId: "inquiry-answer",
143
- modifiedContentByUser: "1",
144
- }),
138
+ document: server.create("document", { formId: "inquiry-answer" }),
145
139
  });
146
140
 
147
141
  server.create("work-item", {
@@ -3,6 +3,4 @@ import { Factory } from "miragejs";
3
3
 
4
4
  export default Factory.extend({
5
5
  id: () => faker.datatype.uuid(),
6
- modifiedContentByUser: () => faker.datatype.uuid(),
7
- modifiedContentAt: () => faker.date.past(),
8
6
  });
@@ -11,6 +11,7 @@ export default Factory.extend({
11
11
  deadline: () => faker.date.future(),
12
12
  status: () => faker.helpers.arrayElement(STATUS),
13
13
  addressedGroups: () => ["group1", "group2"],
14
+ assignedUsers: () => ["1"],
14
15
  closedAt() {
15
16
  return STATUS.filter((s) => s !== "READY").includes(this.status)
16
17
  ? faker.date.past()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@projectcaluma/ember-testing",
3
- "version": "11.0.0-beta.32",
3
+ "version": "11.0.0-beta.33",
4
4
  "description": "Ember addon for testing with Caluma addons.",
5
5
  "keywords": [
6
6
  "ember-addon"