Files
mongo/jstests/core/repro/error5.js
Zac 591928c619 SERVER-108478 JS formatted by prettier and remove clang-format (#39656)
GitOrigin-RevId: 6c8f6aded47f260aa4f7c231b17dae3302cb1e04
2025-08-21 17:27:09 +00:00

16 lines
219 B
JavaScript

// @tags: [requires_fastcount]
let t = db.error5;
t.drop();
assert.throws(
function () {
t.save(4);
printjson(t.findOne());
},
[],
"A",
);
t.save({a: 1});
assert.eq(1, t.count(), "B");