diff --git a/lib/nexmo_developer/spec/javascript/fixtures/emptySearch.js b/lib/nexmo_developer/spec/javascript/fixtures/emptySearch.js index 7a800f9de..2ddbae5cd 100644 --- a/lib/nexmo_developer/spec/javascript/fixtures/emptySearch.js +++ b/lib/nexmo_developer/spec/javascript/fixtures/emptySearch.js @@ -23,6 +23,18 @@ const emptySearchFixture = { "query": "empty", "params": "query=empty", "index": "zendesk_nexmo_articles" + }, + { + "hits": [], + "nbHits": 0, + "page": 0, + "nbPages": 0, + "hitsPerPage": 1, + "processingTimeMS": 1, + "exhaustiveNbHits": true, + "query": "empty", + "params": "query=empty", + "index": "prod_blogposts" } ] }; diff --git a/lib/nexmo_developer/spec/javascript/fixtures/search.js b/lib/nexmo_developer/spec/javascript/fixtures/search.js index edeef9319..4788c99c1 100644 --- a/lib/nexmo_developer/spec/javascript/fixtures/search.js +++ b/lib/nexmo_developer/spec/javascript/fixtures/search.js @@ -154,6 +154,100 @@ const searchFixture = { "query": "test", "params": "query=test", "index": "zendesk_nexmo_articles" + }, + { + "hits": [ + { + "locale": { + "locale": "en-us", + "name": "English", + "rtl": false + }, + "id": "212554438", + "updated_at": 17662, + "position": 0, + "title": "What are the limitations of the test period?", + "body_safe": "   \n Question \n \n Will I always have to enter all my destination numbers when using Nexmo? \n I saw the test message has '[FREE SMS DEMO, TEST MESSAGE]', will these words be removed after I buy credit? \n I saw the test message has '[Nexmo DEMO]', will these words be removed after I buy credit? \n What will no longer be restricted when I am not in testing mode? \n \n Answer \n When initially subscribing to Nexmo €2 free test credit is granted. At this stage, the following restrictions are in place: \n \n your destination numbers need to be whitelisted in advance of you sending SMS, voice calls, or verify to them unless it's to the handset the account was registered with \n the text [FREE SMS DEMO, TEST MESSAGE] will be included in your SMS  (older accounts will have different wording of [Nexmo DEMO] included instead). \n \n \n Once you move out of the Demo mode you no longer need to whitelist your numbers - you can send to any numbers you want within the local market regulations (see here for the local market regulations and restrictions that apply to your destination numbers) and the text [FREE SMS DEMO, TEST MESSAGE] will no longer be appended to the SMS you send. ", + "outdated": false, + "promoted": false, + "vote_sum": 3, + "comments_disabled": false, + "category": { + "id": "200201483", + "title": "SMS" + }, + "section": { + "id": "200621123", + "title": "Outbound SMS", + "full_path": "SMS > Outbound SMS", + "user_segment": "everybody" + }, + "user_segment": "everybody", + "label_names": [ + "sms", + "test" + ], + "created_at_iso": "2015-10-28T10:16:37Z", + "updated_at_iso": "2018-10-29T18:33:59Z", + "edited_at": 17662, + "edited_at_iso": "2018-05-11T17:07:56Z", + "objectID": "218389108", + "_snippetResult": { + "body_safe": { + "value": "using Nexmo? \n I saw the test message has '[FREE SMS", + "matchLevel": "full" + } + }, + "_highlightResult": { + "title": { + "value": "What are the limitations of the test period?", + "matchLevel": "full", + "fullyHighlighted": false, + "matchedWords": [ + "test" + ] + }, + "category": { + "title": { + "value": "SMS", + "matchLevel": "none", + "matchedWords": [] + } + }, + "section": { + "title": { + "value": "Outbound SMS", + "matchLevel": "none", + "matchedWords": [] + } + }, + "label_names": [ + { + "value": "sms", + "matchLevel": "none", + "matchedWords": [] + }, + { + "value": "test", + "matchLevel": "full", + "fullyHighlighted": true, + "matchedWords": [ + "test" + ] + } + ] + } + } + ], + "nbHits": 270, + "page": 0, + "nbPages": 68, + "hitsPerPage": 4, + "processingTimeMS": 6, + "exhaustiveNbHits": true, + "query": "test", + "params": "query=test", + "index": "prod_blogposts" } ] }