Find why these generated checks do not independently specify the shipping boundary.
JavaScript
import assert from "node:assert/strict";
function shippingFeeCents(subtotalCents) {
return subtotalCents >= 5000 ? 0 : 500;
}
const sampledSubtotals = [6000, 7000];
for (const subtotalCents of sampledSubtotals) {
const expected = subtotalCents >= 5000 ? 0 : 500;
assert.equal(shippingFeeCents(subtotalCents), expected);
}