summaryrefslogtreecommitdiff
path: root/jstests/tool/tsv1.js
diff options
context:
space:
mode:
Diffstat (limited to 'jstests/tool/tsv1.js')
-rw-r--r--jstests/tool/tsv1.js20
1 files changed, 10 insertions, 10 deletions
diff --git a/jstests/tool/tsv1.js b/jstests/tool/tsv1.js
index 9317ce89c02..8395a77c711 100644
--- a/jstests/tool/tsv1.js
+++ b/jstests/tool/tsv1.js
@@ -1,6 +1,6 @@
// tsv1.js
-t = new ToolTest( "tsv1" )
+t = new ToolTest( "tsv1" );
c = t.startDB( "foo" );
@@ -10,23 +10,23 @@ t.runTool( "import" , "--file" , "jstests/tool/data/a.tsv" , "-d" , t.baseName ,
assert.soon( "2 == c.count()" , "restore 2" );
a = c.find().sort( { a : 1 } ).toArray();
-delete a[0]._id
-delete a[1]._id
+delete a[0]._id;
+delete a[1]._id;
assert.docEq( { a : "a" , b : "b" , c : "c" , d: "d", e: "e"} , a[1] , "tsv parse 1" );
-assert.docEq( base , a[0] , "tsv parse 0" )
+assert.docEq( base , a[0] , "tsv parse 0" );
-c.drop()
-assert.eq( 0 , c.count() , "after drop 2" )
+c.drop();
+assert.eq( 0 , c.count() , "after drop 2" );
-t.runTool( "import" , "--file" , "jstests/tool/data/a.tsv" , "-d" , t.baseName , "-c" , "foo" , "--type" , "tsv" , "--headerline" )
+t.runTool( "import" , "--file" , "jstests/tool/data/a.tsv" , "-d" , t.baseName , "-c" , "foo" , "--type" , "tsv" , "--headerline" );
assert.soon( "c.findOne()" , "no data after sleep" );
assert.eq( 1 , c.count() , "after restore 2" );
-x = c.findOne()
+x = c.findOne();
delete x._id;
-assert.docEq( base , x , "tsv parse 2" )
+assert.docEq( base , x , "tsv parse 2" );
-t.stop()
+t.stop();