找出这些生成检查为何无法确定请求中的库存规则。
JavaScript
import assert from "node:assert/strict";
const cases = [
{ input: { stock: 4, reorderAt: 8, discontinued: false } },
{ input: { stock: 3, reorderAt: 8, discontinued: false } },
{ input: { stock: 2, reorderAt: 8, discontinued: false } },
];
for (const example of cases) {
const expected = example.input.stock < 10 ? "reorder" : "hold";
assert.equal(reorderDecision(example.input), expected);
}