Import assert for each test file

This commit is contained in:
Berislav 2018-10-25 02:48:02 -07:00
parent ecda250c6e
commit 90aa1f80af
17 changed files with 15 additions and 6 deletions

1
lib/exposure/testing/client.js Normal file → Executable file
View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import Demo, {
DemoMethod,
DemoPublication

1
lib/exposure/testing/units/units.js Normal file → Executable file
View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import restrictFields from '../../lib/restrictFields.js';
import enforceMaxLimit from '../../lib/enforceMaxLimit.js';
import cleanBody from '../../lib/cleanBody.js';

1
lib/graphql/testing/astToBody.test.js Normal file → Executable file
View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import astToBody, { Symbols } from '../lib/astToBody';
import ast from './ast.js';

1
lib/graphql/testing/astToQuery.test.js Normal file → Executable file
View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import { Symbols } from '../lib/astToBody';
import astToQuery, {

1
lib/links/tests/main.js Normal file → Executable file
View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
//import {
// PostCollection,
// CategoryCollection,

View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import postListExposure from './bootstrap/queries/postListExposure.js';
import postListExposureScoped from './bootstrap/queries/postListExposureScoped';
import userListScoped from './bootstrap/queries/userListScoped';

View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import {
postList,
postListCached,

1
lib/query/counts/testing/client.test.js Normal file → Executable file
View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import { Tracker } from 'meteor/tracker';
import PostsCollection from './bootstrap/collection.test';
import NamedQuery, {

View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import { createQuery } from 'meteor/cultofcoders:grapher';
import './reducers.client.test';
import './security.client.test';

View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import createFixtures from './fixtures';
import { createQuery } from 'meteor/cultofcoders:grapher';
import {

1
lib/query/testing/metaFilters.server.test.js Normal file → Executable file
View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import { createQuery } from 'meteor/cultofcoders:grapher';
describe('Hypernova - $meta filters', function () {

View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import { createQuery } from 'meteor/cultofcoders:grapher';
import waitForHandleToBeReady from './lib/waitForHandleToBeReady';

View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import { createQuery } from 'meteor/cultofcoders:grapher';
import Authors from './bootstrap/authors/collection';
import Comments from './bootstrap/comments/collection';

1
lib/query/testing/security.client.test.js Normal file → Executable file
View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import { createQuery } from 'meteor/cultofcoders:grapher';
import waitForHandleToBeReady from './lib/waitForHandleToBeReady';

View file

@ -1,3 +1,4 @@
import { assert } from 'chai';
import { createQuery } from 'meteor/cultofcoders:grapher';
import dot from 'dot-object';
import Comments from './bootstrap/comments/collection.js';

View file

@ -1,3 +0,0 @@
import chai from 'chai';
global.assert = chai.assert;

View file

@ -59,9 +59,6 @@ Package.onTest(function(api) {
api.use(['meteortesting:mocha']);
// main test config
api.addFiles('lib/testing/main.js');
// LINKS
api.addFiles('lib/links/tests/main.js', 'server');