mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-14 12:40:43 +00:00
test: tighten core empty array assertions
This commit is contained in:
@@ -70,7 +70,7 @@ describe("commitment store delivery selection", () => {
|
||||
sessionKey,
|
||||
nowMs,
|
||||
}),
|
||||
).resolves.toEqual([]);
|
||||
).resolves.toStrictEqual([]);
|
||||
});
|
||||
|
||||
it("limits delivered commitments per agent session in a rolling day", async () => {
|
||||
@@ -90,7 +90,7 @@ describe("commitment store delivery selection", () => {
|
||||
sessionKey,
|
||||
nowMs,
|
||||
}),
|
||||
).resolves.toEqual([]);
|
||||
).resolves.toStrictEqual([]);
|
||||
|
||||
const store = await loadCommitmentStore();
|
||||
expect(store.commitments).toHaveLength(2);
|
||||
@@ -118,7 +118,7 @@ describe("commitment store delivery selection", () => {
|
||||
sessionKey,
|
||||
nowMs,
|
||||
}),
|
||||
).resolves.toEqual([]);
|
||||
).resolves.toStrictEqual([]);
|
||||
|
||||
const store = await loadCommitmentStore();
|
||||
expect(store.commitments[0]).toMatchObject({
|
||||
|
||||
Reference in New Issue
Block a user