Corrected test name

This commit is contained in:
Berislav 2018-05-31 14:59:07 +02:00
parent d81291af2b
commit 813e6e8620

View file

@ -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: {