mirror of
https://github.com/vale981/grapher
synced 2025-03-05 09:31:42 -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, {
|
||||
DemoMethod,
|
||||
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 enforceMaxLimit from '../../lib/enforceMaxLimit.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 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 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 {
|
||||
// PostCollection,
|
||||
// CategoryCollection,
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { assert } from 'chai';
|
||||
import {
|
||||
postList,
|
||||
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 PostsCollection from './bootstrap/collection.test';
|
||||
import NamedQuery, {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { assert } from 'chai';
|
||||
import { createQuery } from 'meteor/cultofcoders:grapher';
|
||||
import './reducers.client.test';
|
||||
import './security.client.test';
|
||||
|
|
|
@ -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
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';
|
||||
|
||||
describe('Hypernova - $meta filters', function () {
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
import { assert } from 'chai';
|
||||
import { createQuery } from 'meteor/cultofcoders:grapher';
|
||||
import waitForHandleToBeReady from './lib/waitForHandleToBeReady';
|
||||
|
||||
|
|
|
@ -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
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 waitForHandleToBeReady from './lib/waitForHandleToBeReady';
|
||||
|
||||
|
|
|
@ -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';
|
||||
|
|
|
@ -1,3 +0,0 @@
|
|||
import chai from 'chai';
|
||||
|
||||
global.assert = chai.assert;
|
|
@ -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');
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue