@7365admin1/core 3.91.0 → 3.92.0

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,7 +1,7 @@
1
1
  {
2
2
  "name": "@7365admin1/core",
3
3
  "license": "MIT",
4
- "version": "3.91.0",
4
+ "version": "3.92.0",
5
5
  "author": "7365admin1",
6
6
  "main": "dist/index.js",
7
7
  "module": "dist/index.mjs",
@@ -173,6 +173,13 @@ describe("building maps and the lift queue", { concurrency: 1 }, () => {
173
173
  const now = await h.db.collection("robot-lift-sessions").findOne({ status: "active" });
174
174
  assert.equal(String(now.robotId), String(id.demo2));
175
175
  assert.equal((await h.api(`/robots/lift-sessions/${holder._id}/release`, { method: "POST", sid: managerSid })).status, 409);
176
+ // The ride that just ended is listed under the lift as a recent row.
177
+ const after = await h.api(`/robots/building-maps/${mapId}/lifts`, { sid: managerSid });
178
+ const recent = after.body.items[0].recent;
179
+ assert.equal(recent.length, 1);
180
+ assert.equal(String(recent[0]._id), String(holder._id));
181
+ assert.equal(recent[0].status, "released");
182
+ assert.ok(recent[0].closedAt);
176
183
  assert.ok(await findAudit(h, "robot.lift-released"));
177
184
  assert.ok(await findAudit(h, "robot.lift-requested"));
178
185
  });
@@ -190,6 +197,7 @@ describe("building maps and the lift queue", { concurrency: 1 }, () => {
190
197
  assert.equal(queue.body.items[0].active.robotName, "Demo 1");
191
198
  const expired = await h.db.collection("robot-lift-sessions").findOne({ _id: holder._id });
192
199
  assert.equal(expired.status, "expired");
200
+ assert.ok(queue.body.items[0].recent.some((r) => String(r._id) === String(holder._id) && r.status === "expired"));
193
201
  assert.equal((await h.api(`/robots/lift-sessions/${holder._id}/refresh`, { method: "POST", sid: managerSid })).status, 409);
194
202
  });
195
203