function cb(err) {
            do_check_eq(null, err);
            responseHasCorrectHeaders(this.response);
            let putResponseBody = this.response.body;
            _("PUT response body: " + JSON.stringify(putResponseBody));

            req = localRequest(server, "/1.1/john/info/collections");
            req.get(function (err) {
              do_check_eq(null, err);
              responseHasCorrectHeaders(this.response);
              let expectedColl = server.getCollection("john", "crypto");
              do_check_true(!!expectedColl);
              let modified = expectedColl.timestamp;
              do_check_true(modified > 0);
              do_check_eq(putResponseBody, modified);
              do_check_eq(JSON.parse(this.response.body).crypto, modified);
              Utils.nextTick(function () {
                server.stop(run_next_test);
              });
            });
          }
// When we PUT something to crypto/keys, "crypto" appears in the response.
When we PUT something to crypto/keys, "crypto" appears in the response.
When we PUT something to crypto / keys " crypto " appears in the response .
function cb(err) {
            do_check_eq(null, err);
            responseHasCorrectHeaders(this.response);
            let putResponseBody = this.response.body;
            _("PUT response body: " + JSON.stringify(putResponseBody));
            req = localRequest(server, "/1.1/john/info/collections");
            req.get(function (err) {
              do_check_eq(null, err);
              responseHasCorrectHeaders(this.response);
              let expectedColl = server.getCollection("john", "crypto");
              do_check_true(!!expectedColl);
              let modified = expectedColl.timestamp;
              do_check_true(modified > 0);
              do_check_eq(putResponseBody, modified);
              do_check_eq(JSON.parse(this.response.body).crypto, modified);
              Utils.nextTick(function () {
                server.stop(run_next_test);
              });
            });
          }
function cb ( err ) { do_check_eq ( null , err ) ; responseHasCorrectHeaders ( this . response ) ; let putResponseBody = this . response . body ; _ ( "PUT response body: " + JSON . stringify ( putResponseBody ) ) ; req = localRequest ( server , "/1.1/john/info/collections" ) ; req . get ( function ( err ) { do_check_eq ( null , err ) ; responseHasCorrectHeaders ( this . response ) ; let expectedColl = server . getCollection ( "john" , "crypto" ) ; do_check_true ( ! ! expectedColl ) ; let modified = expectedColl . timestamp ; do_check_true ( modified > 0 ) ; do_check_eq ( putResponseBody , modified ) ; do_check_eq ( JSON . parse ( this . response . body ) . crypto , modified ) ; Utils . nextTick ( function ( ) { server . stop ( run_next_test ) ; } ) ; } ) ; }
When we PUT something to crypto/keys, "crypto" appears in the response.
When we PUT something to crypto / keys " crypto " appears in the response .