mirror of
https://github.com/vale981/grapher
synced 2025-03-05 09:31:42 -05:00
Corrected test name
This commit is contained in:
parent
d81291af2b
commit
813e6e8620
1 changed files with 23 additions and 23 deletions
|
@ -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: {
|
||||
|
|
Loading…
Add table
Reference in a new issue