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/core/cursorb.js | |
parent | a025d43f3ce2efc1fb1282a718f5d286fa0a4dc1 (diff) | |
download | mongo-4ae691e8edc87d0e3cfb633bb91c328426be007b.tar.gz |
SERVER-22468 Format JS code with approved style in jstests/
Diffstat (limited to 'jstests/core/cursorb.js')
-rw-r--r-- | jstests/core/cursorb.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/jstests/core/cursorb.js b/jstests/core/cursorb.js index 70f49c50454..62c6db802dd 100644 --- a/jstests/core/cursorb.js +++ b/jstests/core/cursorb.js @@ -5,13 +5,14 @@ t = db.jstests_cursorb; t.drop(); // Exhaust a client cursor in get more. -for( i = 0; i < 200; ++i ) { - t.save( { a:i } ); +for (i = 0; i < 200; ++i) { + t.save({a: i}); } t.find().itcount(); // Check that the 'cursor not found in map -1' message is not printed. This message indicates an // attempt to look up a cursor with an invalid id and should never appear in the log. -log = db.adminCommand( { getLog:'global' } ).log; -log.forEach( function( line ) { assert( !line.match( /cursor not found in map -1 / ), - 'Cursor map lookup with id -1.' ); } ); +log = db.adminCommand({getLog: 'global'}).log; +log.forEach(function(line) { + assert(!line.match(/cursor not found in map -1 /), 'Cursor map lookup with id -1.'); +}); |