From abf3fd786127c52a51a8bfcd4358b02359f76713 Mon Sep 17 00:00:00 2001 From: Kjell-Morten Date: Fri, 30 Mar 2018 18:58:05 +0200 Subject: [PATCH] Test dollar sign in query props --- lib/adapter/send-test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/adapter/send-test.js b/lib/adapter/send-test.js index 44bcbd6..5e473ce 100644 --- a/lib/adapter/send-test.js +++ b/lib/adapter/send-test.js @@ -87,13 +87,13 @@ test('should get with query', async (t) => { db: 'database', query: [ {path: 'type', param: 'type'}, - {path: 'attributes\\.title', value: 'Entry 2'} + {path: 'attributes\\.age.$gt', value: 18} ] } } const expected = { type: 'entry', - 'attributes.title': 'Entry 2' + 'attributes.age': {$gt: 18} } await send(request, connection)