diff options
author | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:17:50 -0500 |
---|---|---|
committer | Jonathan Abrahams <jonathan@mongodb.com> | 2016-03-09 12:18:14 -0500 |
commit | 4ae691e8edc87d0e3cfb633bb91c328426be007b (patch) | |
tree | 52079a593f54382ca13a2e741633eab1b6271893 /jstests/tool/files1.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/tool/files1.js')
-rw-r--r-- | jstests/tool/files1.js | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/jstests/tool/files1.js b/jstests/tool/files1.js index bd8ec971ad6..190ac983dae 100644 --- a/jstests/tool/files1.js +++ b/jstests/tool/files1.js @@ -1,27 +1,27 @@ // files1.js -t = new ToolTest( "files1" ); +t = new ToolTest("files1"); db = t.startDB(); filename = 'mongod'; -if ( _isWindows() ) +if (_isWindows()) filename += '.exe'; -t.runTool( "files" , "-d" , t.baseName , "put" , filename ); +t.runTool("files", "-d", t.baseName, "put", filename); md5 = md5sumFile(filename); file_obj = db.fs.files.findOne(); -assert( file_obj , "A 0" ); +assert(file_obj, "A 0"); md5_stored = file_obj.md5; md5_computed = db.runCommand({filemd5: file_obj._id}).md5; -assert.eq( md5 , md5_stored , "A 1" ); -assert.eq( md5 , md5_computed, "A 2" ); +assert.eq(md5, md5_stored, "A 1"); +assert.eq(md5, md5_computed, "A 2"); mkdir(t.ext); -t.runTool( "files" , "-d" , t.baseName , "get" , filename , '-l' , t.extFile ); +t.runTool("files", "-d", t.baseName, "get", filename, '-l', t.extFile); md5 = md5sumFile(t.extFile); -assert.eq( md5 , md5_stored , "B" ); +assert.eq(md5, md5_stored, "B"); t.stop(); |