Test "near" queries executed in memory

Rework setup of the Operation Hooks test suite for memory connector
so that the "unoptimized" variant disables not only atomic CRUD
operations, but also geo queries.

This way we can test both "near" querying implementations:
 - When the connectors supports "near" queries natively.
 - When "near" queries are executed at LoopBack side in-memory.
This commit is contained in:
Miroslav Bajtoš 2019-05-13 09:10:22 +02:00
parent 548f3018a9
commit 7f35e0ff2c
No known key found for this signature in database
GPG Key ID: 6F2304BA9361C7E3
1 changed files with 3 additions and 0 deletions

View File

@ -917,6 +917,9 @@ describe('Unoptimized connector', function() {
ds.connector.findOrCreate = false;
ds.connector.upsertWithWhere = false;
// disable native location queries
ds.connector.buildNearFilter = false;
require('./persistence-hooks.suite')(ds, should, {
replaceOrCreateReportsNewInstance: true,
});