mirror of
https://github.com/vale981/grapher
synced 2025-03-05 17:41:41 -05:00
Import assert for each test file
This commit is contained in:
parent
ecda250c6e
commit
90aa1f80af
17 changed files with 15 additions and 6 deletions
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, {
|
||||||
|
|
|
@ -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';
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
import chai from 'chai';
|
|
||||||
|
|
||||||
global.assert = chai.assert;
|
|
|
@ -59,9 +59,6 @@ Package.onTest(function(api) {
|
||||||
|
|
||||||
api.use(['meteortesting:mocha']);
|
api.use(['meteortesting:mocha']);
|
||||||
|
|
||||||
// main test config
|
|
||||||
api.addFiles('lib/testing/main.js');
|
|
||||||
|
|
||||||
// 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