summaryrefslogtreecommitdiff
path: root/jstests/tool/exportimport6.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/tool/exportimport6.js')
-rw-r--r--jstests/tool/exportimport6.js27
1 files changed, 19 insertions, 8 deletions
diff --git a/jstests/tool/exportimport6.js b/jstests/tool/exportimport6.js
index 0924638e628..71d89baf01c 100644
--- a/jstests/tool/exportimport6.js
+++ b/jstests/tool/exportimport6.js
@@ -5,17 +5,28 @@ t = new ToolTest("exportimport6");
c = t.startDB("foo");
assert.eq(0, c.count(), "setup1");
-c.save({a:1, b:1});
-c.save({a:1, b:2});
-c.save({a:2, b:3});
-c.save({a:2, b:3});
-c.save({a:3, b:4});
-c.save({a:3, b:5});
+c.save({a: 1, b: 1});
+c.save({a: 1, b: 2});
+c.save({a: 2, b: 3});
+c.save({a: 2, b: 3});
+c.save({a: 3, b: 4});
+c.save({a: 3, b: 5});
assert.eq(6, c.count(), "setup2");
-t.runTool("export", "--out", t.extFile, "-d", t.baseName, "-c", "foo",
- "--sort", "{a:1, b:-1}", "--skip", "4", "--limit", "1");
+t.runTool("export",
+ "--out",
+ t.extFile,
+ "-d",
+ t.baseName,
+ "-c",
+ "foo",
+ "--sort",
+ "{a:1, b:-1}",
+ "--skip",
+ "4",
+ "--limit",
+ "1");
c.drop();
assert.eq(0, c.count(), "after drop", "-d", t.baseName, "-c", "foo");