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

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,
@@ -140,7 +137,7 @@ export function sendInquiry(server, { inquiry }) {
140
137
  workflowId: "inquiry",
141
138
  document: server.create("document", {
142
139
  formId: "inquiry-answer",
143
- modifiedContentByUser: "1",
140
+ modifiedContentAt: faker.date.recent(),
144
141
  }),
145
142
  });
146
143
 
@@ -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.34",
4
4
  "description": "Ember addon for testing with Caluma addons.",
5
5
  "keywords": [
6
6
  "ember-addon"
@@ -51,7 +51,7 @@
51
51
  "ember-try": "2.0.0",
52
52
  "graphql-tag": "2.12.6",
53
53
  "loader.js": "4.7.0",
54
- "qunit": "2.19.2",
54
+ "qunit": "2.19.3",
55
55
  "qunit-dom": "2.0.0",
56
56
  "webpack": "5.74.0"
57
57
  },