summaryrefslogtreecommitdiff
path: root/jstests/core/date2.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/core/date2.js')
-rw-r--r--jstests/core/date2.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/jstests/core/date2.js b/jstests/core/date2.js
index 9e3af9b7555..2980f10bf7a 100644
--- a/jstests/core/date2.js
+++ b/jstests/core/date2.js
@@ -3,9 +3,11 @@
t = db.jstests_date2;
t.drop();
-t.ensureIndex( {a:1} );
+t.ensureIndex({a: 1});
-var obj = {a:new Timestamp(0, 1)}; // in old versions this was == to new Date(1)
-t.save( obj );
-assert.eq( 0, t.find( {a:{$gt:new Date(1)}} ).itcount() );
-assert.eq( 1, t.find(obj).itcount() );
+var obj = {
+ a: new Timestamp(0, 1)
+}; // in old versions this was == to new Date(1)
+t.save(obj);
+assert.eq(0, t.find({a: {$gt: new Date(1)}}).itcount());
+assert.eq(1, t.find(obj).itcount());