Merge pull request #12568 from meteor/release-3.0-fix-non-core-tests

[Release 3.0] fix non-core packages tests
This commit is contained in:
Gabriel Grubba
2023-03-20 15:18:21 -03:00
committed by GitHub

View File

@@ -1,9 +1,9 @@
Tinytest.add('mongo-decimal - insert/find Decimal', function (test) {
Tinytest.addAsync('mongo-decimal - insert/find Decimal', async function (test) {
var coll = new Mongo.Collection('mongo-decimal');
var pi = Decimal('3.141592653589793');
coll.insert({pi: pi});
var found = coll.findOne({pi: pi});
await coll.insertAsync({pi: pi});
var found = await coll.findOneAsync({pi: pi});
test.equal(found.pi, pi);
});