mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
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:
@@ -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);
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user