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:
parent
548f3018a9
commit
7f35e0ff2c
|
@ -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,
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue