1- // Copyright © 2015, 2018 IBM Corp. All rights reserved.
1+ // Copyright © 2015, 2019 IBM Corp. All rights reserved.
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -813,7 +813,7 @@ describe('#db Cloudant Search', function() {
813813
814814 it ( 'searches test data: author:charles' , function ( done ) {
815815 var mocks = nock ( SERVER )
816- . get ( '/' + dbName + '/_design/library/_search/books?q= author%3Acharles ' )
816+ . post ( '/' + dbName + '/_design/library/_search/books' , '{\"q\":\" author:charles\"} ')
817817 . reply ( 200 , { total_rows : 1 , bookmark : 'g2wAAAABaANkAB1kYmNvcmVAZGI2LnNsaW5nLmNsb3VkYW50Lm5ldGwAAAACbgQAAAAAgG4EAP___79qaAJGP8iMWIAAAABhAGo' , rows : [ { id : 'a_tale' , order : [ Object ] , fields : { } } ] } ) ;
818818
819819 mydb . search ( 'library' , 'books' , { q : 'author:charles' } , function ( er , d ) {
@@ -833,7 +833,7 @@ describe('#db Cloudant Search', function() {
833833
834834 it ( 'searches test data: title:two' , function ( done ) {
835835 var mocks = nock ( SERVER )
836- . get ( '/' + dbName + '/_design/library/_search/books?q= title%3Atwo ' )
836+ . post ( '/' + dbName + '/_design/library/_search/books' , '{\"q\":\" title:two\"} ')
837837 . reply ( 200 , { total_rows : 2 , bookmark : 'g1AAAACIeJzLYWBgYMpgTmGQTUlKzi9KdUhJMtcrzsnMS9dLzskvTUnMK9HLSy3JASlLcgCSSfX____PymBysz_RE9EAFEhkIFJ7HguQZGgAUkAT9oONOLy4igFsRBYAPRQqlQ' , rows : [ { id : 'towers' , order : [ Object ] , fields : { } } , { id : 'a_tale' , order : [ Object ] , fields : { } } ] } ) ;
838838
839839 mydb . search ( 'library' , 'books' , { q : 'title:two' } , function ( er , d ) {
0 commit comments