From 813e6e8620c8e906eb607f652453442b88307cc1 Mon Sep 17 00:00:00 2001 From: Berislav Date: Thu, 31 May 2018 14:59:07 +0200 Subject: [PATCH] Corrected test name --- lib/query/testing/server.test.js | 46 ++++++++++++++++---------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/lib/query/testing/server.test.js b/lib/query/testing/server.test.js index f233be7..9974ae6 100755 --- a/lib/query/testing/server.test.js +++ b/lib/query/testing/server.test.js @@ -147,29 +147,6 @@ describe('Hypernova', function() { }); }); - it('Should fetch One-Meta links correctly where parent is One link', function () { - const data = createQuery({ - posts: { - $options: { limit: 5 }, - author: { - groups: { - isAdmin: 1 - } - } - } - }).fetch(); - - _.each(data, post => { - assert.isObject(post.author); - assert.isArray(post.author.groups); - - _.each(post.author.groups, group => { - assert.isObject(group.$metadata); - assert.isBoolean(group.$metadata.isAdmin); - }); - }); - }); - it('Should fetch Many-Meta links correctly', function() { const data = createQuery({ authors: { @@ -193,6 +170,29 @@ describe('Hypernova', function() { }); }); + it('Should fetch Many-Meta links correctly where parent is One link', function () { + const data = createQuery({ + posts: { + $options: { limit: 5 }, + author: { + groups: { + isAdmin: 1 + } + } + } + }).fetch(); + + _.each(data, post => { + assert.isObject(post.author); + assert.isArray(post.author.groups); + + _.each(post.author.groups, group => { + assert.isObject(group.$metadata); + assert.isBoolean(group.$metadata.isAdmin); + }); + }); + }); + it('Should fetch Many-Meta inversed links correctly', function() { const data = createQuery({ groups: {