mirror of
https://github.com/vale981/grapher
synced 2025-03-05 09:31:42 -05:00
Merge branch 'master' into fix-315
This commit is contained in:
commit
ddc3edf3b7
18 changed files with 21 additions and 6 deletions
2
.travis.yml
Normal file → Executable file
2
.travis.yml
Normal file → Executable file
|
@ -27,5 +27,5 @@ before_script:
|
||||||
script:
|
script:
|
||||||
- meteor create --bare test
|
- meteor create --bare test
|
||||||
- cd test
|
- cd test
|
||||||
- meteor npm i --save selenium-webdriver@3.6.0 chromedriver@2.36.0 simpl-schema
|
- meteor npm i --save selenium-webdriver@3.6.0 chromedriver@2.36.0 simpl-schema chai
|
||||||
- METEOR_PACKAGE_DIRS="../" TEST_BROWSER_DRIVER=chrome meteor test-packages --once --driver-package meteortesting:mocha ../
|
- METEOR_PACKAGE_DIRS="../" TEST_BROWSER_DRIVER=chrome meteor test-packages --once --driver-package meteortesting:mocha ../
|
1
lib/exposure/testing/client.js
Normal file → Executable file
1
lib/exposure/testing/client.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import Demo, {
|
import Demo, {
|
||||||
DemoMethod,
|
DemoMethod,
|
||||||
DemoPublication
|
DemoPublication
|
||||||
|
|
1
lib/exposure/testing/units/units.js
Normal file → Executable file
1
lib/exposure/testing/units/units.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import restrictFields from '../../lib/restrictFields.js';
|
import restrictFields from '../../lib/restrictFields.js';
|
||||||
import enforceMaxLimit from '../../lib/enforceMaxLimit.js';
|
import enforceMaxLimit from '../../lib/enforceMaxLimit.js';
|
||||||
import cleanBody from '../../lib/cleanBody.js';
|
import cleanBody from '../../lib/cleanBody.js';
|
||||||
|
|
1
lib/graphql/testing/astToBody.test.js
Normal file → Executable file
1
lib/graphql/testing/astToBody.test.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import astToBody, { Symbols } from '../lib/astToBody';
|
import astToBody, { Symbols } from '../lib/astToBody';
|
||||||
import ast from './ast.js';
|
import ast from './ast.js';
|
||||||
|
|
||||||
|
|
1
lib/graphql/testing/astToQuery.test.js
Normal file → Executable file
1
lib/graphql/testing/astToQuery.test.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import { Symbols } from '../lib/astToBody';
|
import { Symbols } from '../lib/astToBody';
|
||||||
|
|
||||||
import astToQuery, {
|
import astToQuery, {
|
||||||
|
|
1
lib/links/tests/main.js
Normal file → Executable file
1
lib/links/tests/main.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
//import {
|
//import {
|
||||||
// PostCollection,
|
// PostCollection,
|
||||||
// CategoryCollection,
|
// CategoryCollection,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import postListExposure from './bootstrap/queries/postListExposure.js';
|
import postListExposure from './bootstrap/queries/postListExposure.js';
|
||||||
import postListExposureScoped from './bootstrap/queries/postListExposureScoped';
|
import postListExposureScoped from './bootstrap/queries/postListExposureScoped';
|
||||||
import userListScoped from './bootstrap/queries/userListScoped';
|
import userListScoped from './bootstrap/queries/userListScoped';
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import {
|
import {
|
||||||
postList,
|
postList,
|
||||||
postListCached,
|
postListCached,
|
||||||
|
|
1
lib/query/counts/testing/client.test.js
Normal file → Executable file
1
lib/query/counts/testing/client.test.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import { Tracker } from 'meteor/tracker';
|
import { Tracker } from 'meteor/tracker';
|
||||||
import PostsCollection from './bootstrap/collection.test';
|
import PostsCollection from './bootstrap/collection.test';
|
||||||
import NamedQuery, {
|
import NamedQuery, {
|
||||||
|
|
|
@ -41,14 +41,14 @@ function compose(node, userId, config) {
|
||||||
}
|
}
|
||||||
|
|
||||||
const cursor = accessor.find(filters, options, userId);
|
const cursor = accessor.find(filters, options, userId);
|
||||||
if (config && config.scoped) {
|
if (config.scoped) {
|
||||||
patchCursor(cursor, getNodeNamespace(node));
|
patchCursor(cursor, getNodeNamespace(node));
|
||||||
}
|
}
|
||||||
return cursor;
|
return cursor;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
children: _.map(node.collectionNodes, n => compose(n, userId))
|
children: _.map(node.collectionNodes, n => compose(n, userId, config))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import { createQuery } from 'meteor/cultofcoders:grapher';
|
import { createQuery } from 'meteor/cultofcoders:grapher';
|
||||||
import './reducers.client.test';
|
import './reducers.client.test';
|
||||||
import './security.client.test';
|
import './security.client.test';
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import createFixtures from './fixtures';
|
import createFixtures from './fixtures';
|
||||||
import { createQuery } from 'meteor/cultofcoders:grapher';
|
import { createQuery } from 'meteor/cultofcoders:grapher';
|
||||||
import {
|
import {
|
||||||
|
|
1
lib/query/testing/metaFilters.server.test.js
Normal file → Executable file
1
lib/query/testing/metaFilters.server.test.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import { createQuery } from 'meteor/cultofcoders:grapher';
|
import { createQuery } from 'meteor/cultofcoders:grapher';
|
||||||
|
|
||||||
describe('Hypernova - $meta filters', function () {
|
describe('Hypernova - $meta filters', function () {
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import { createQuery } from 'meteor/cultofcoders:grapher';
|
import { createQuery } from 'meteor/cultofcoders:grapher';
|
||||||
import waitForHandleToBeReady from './lib/waitForHandleToBeReady';
|
import waitForHandleToBeReady from './lib/waitForHandleToBeReady';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import { createQuery } from 'meteor/cultofcoders:grapher';
|
import { createQuery } from 'meteor/cultofcoders:grapher';
|
||||||
import Authors from './bootstrap/authors/collection';
|
import Authors from './bootstrap/authors/collection';
|
||||||
import Comments from './bootstrap/comments/collection';
|
import Comments from './bootstrap/comments/collection';
|
||||||
|
|
1
lib/query/testing/security.client.test.js
Normal file → Executable file
1
lib/query/testing/security.client.test.js
Normal file → Executable file
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import { createQuery } from 'meteor/cultofcoders:grapher';
|
import { createQuery } from 'meteor/cultofcoders:grapher';
|
||||||
import waitForHandleToBeReady from './lib/waitForHandleToBeReady';
|
import waitForHandleToBeReady from './lib/waitForHandleToBeReady';
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { assert } from 'chai';
|
||||||
import { createQuery } from 'meteor/cultofcoders:grapher';
|
import { createQuery } from 'meteor/cultofcoders:grapher';
|
||||||
import dot from 'dot-object';
|
import dot from 'dot-object';
|
||||||
import Comments from './bootstrap/comments/collection.js';
|
import Comments from './bootstrap/comments/collection.js';
|
||||||
|
|
|
@ -31,7 +31,7 @@ Package.onUse(function(api) {
|
||||||
'reywood:publish-composite@1.5.2',
|
'reywood:publish-composite@1.5.2',
|
||||||
'dburles:mongo-collection-instances@0.3.5',
|
'dburles:mongo-collection-instances@0.3.5',
|
||||||
'herteby:denormalize@0.6.5',
|
'herteby:denormalize@0.6.5',
|
||||||
'peerlibrary:subscription-scope@0.1.0',
|
'peerlibrary:subscription-scope@0.4.0',
|
||||||
];
|
];
|
||||||
|
|
||||||
api.use(packages);
|
api.use(packages);
|
||||||
|
@ -50,14 +50,14 @@ Package.onTest(function(api) {
|
||||||
'reywood:publish-composite@1.5.2',
|
'reywood:publish-composite@1.5.2',
|
||||||
'dburles:mongo-collection-instances@0.3.5',
|
'dburles:mongo-collection-instances@0.3.5',
|
||||||
'herteby:denormalize@0.6.5',
|
'herteby:denormalize@0.6.5',
|
||||||
'peerlibrary:subscription-scope@0.1.0',
|
'peerlibrary:subscription-scope@0.4.0',
|
||||||
'mongo',
|
'mongo',
|
||||||
];
|
];
|
||||||
|
|
||||||
api.use(packages);
|
api.use(packages);
|
||||||
api.use('tracker');
|
api.use('tracker');
|
||||||
|
|
||||||
api.use(['cultofcoders:mocha', 'practicalmeteor:chai']);
|
api.use(['meteortesting:mocha']);
|
||||||
|
|
||||||
// LINKS
|
// LINKS
|
||||||
api.addFiles('lib/links/tests/main.js', 'server');
|
api.addFiles('lib/links/tests/main.js', 'server');
|
||||||
|
|
Loading…
Add table
Reference in a new issue