new version

This commit is contained in:
Nikolai Tschacher
2019-06-11 22:01:27 +02:00
parent d4d06f7d67
commit 5bf7c94b9a
16 changed files with 6128 additions and 526 deletions

View File

@ -32,8 +32,6 @@ async function normal_search_test() {
// we test with a callback function to our handler
function normal_search_test_case(response) {
assert.equal(response.headers['Content-Type'], 'text/json', 'content type is not text/json');
assert.equal(response.statusCode, 200, 'status code must be 200');
assert.equal(response.metadata.num_requests, 6);
for (let query in response.results) {
@ -108,8 +106,6 @@ async function no_results_test() {
// we test with a callback function to our handler
function test_case_no_results(response) {
assert.equal(response.headers['Content-Type'], 'text/json', 'content type is not text/json');
assert.equal(response.statusCode, 200, 'status code must be 200');
assert.equal(response.metadata.num_requests, 1);
results = response.results;
@ -159,8 +155,6 @@ async function effective_query_test() {
// we test with a callback function to our handler
function test_case_effective_query(response) {
assert.equal(response.headers['Content-Type'], 'text/json', 'content type is not text/json');
assert.equal(response.statusCode, 200, 'status code must be 200');
assert.equal(response.metadata.num_requests, 1);
results = response.results;