summaryrefslogtreecommitdiff
path: root/jstests/aggregation/extras/debug.js
diff options
context:
space:
mode:
authorJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:17:50 -0500
committerJonathan Abrahams <jonathan@mongodb.com>2016-03-09 12:18:14 -0500
commit4ae691e8edc87d0e3cfb633bb91c328426be007b (patch)
tree52079a593f54382ca13a2e741633eab1b6271893 /jstests/aggregation/extras/debug.js
parenta025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff)
downloadmongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/aggregation/extras/debug.js')
-rw-r--r--jstests/aggregation/extras/debug.js30
1 files changed, 5 insertions, 25 deletions
diff --git a/jstests/aggregation/extras/debug.js b/jstests/aggregation/extras/debug.js
index 24402c1ca69..f2a101976de 100644
--- a/jstests/aggregation/extras/debug.js
+++ b/jstests/aggregation/extras/debug.js
@@ -1,5 +1,6 @@
function assert(b, m) {
- if (!b) alert(m);
+ if (!b)
+ alert(m);
}
function ObjectId(id) {
@@ -7,28 +8,7 @@ function ObjectId(id) {
}
var t1result = [
- {
- "_id" : ObjectId("4dc07fedd8420ab8d0d4066d"),
- "pageViews" : 5,
- "tags" : [
- "fun",
- "good"
- ]
- },
- {
- "_id" : ObjectId("4dc07fedd8420ab8d0d4066e"),
- "pageViews" : 7,
- "tags" : [
- "fun",
- "nasty"
- ]
- },
- {
- "_id" : ObjectId("4dc07fedd8420ab8d0d4066f"),
- "pageViews" : 6,
- "tags" : [
- "nasty",
- "filthy"
- ]
- }
+ {"_id": ObjectId("4dc07fedd8420ab8d0d4066d"), "pageViews": 5, "tags": ["fun", "good"]},
+ {"_id": ObjectId("4dc07fedd8420ab8d0d4066e"), "pageViews": 7, "tags": ["fun", "nasty"]},
+ {"_id": ObjectId("4dc07fedd8420ab8d0d4066f"), "pageViews": 6, "tags": ["nasty", "filthy"]}
];