@projectcaluma/ember-testing 11.0.0-beta.31 → 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", {
|
|
@@ -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()
|