diff --git a/.travis.yml b/.travis.yml old mode 100644 new mode 100755 index b455780..302f378 --- a/.travis.yml +++ b/.travis.yml @@ -27,5 +27,5 @@ before_script: script: - meteor create --bare 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 ../ \ No newline at end of file diff --git a/lib/exposure/testing/client.js b/lib/exposure/testing/client.js old mode 100644 new mode 100755 index ab35b37..b8492c4 --- a/lib/exposure/testing/client.js +++ b/lib/exposure/testing/client.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; import Demo, { DemoMethod, DemoPublication diff --git a/lib/exposure/testing/units/units.js b/lib/exposure/testing/units/units.js old mode 100644 new mode 100755 index af11c1f..a812e09 --- a/lib/exposure/testing/units/units.js +++ b/lib/exposure/testing/units/units.js @@ -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'; diff --git a/lib/graphql/testing/astToBody.test.js b/lib/graphql/testing/astToBody.test.js old mode 100644 new mode 100755 index 7488f23..acd3897 --- a/lib/graphql/testing/astToBody.test.js +++ b/lib/graphql/testing/astToBody.test.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; import astToBody, { Symbols } from '../lib/astToBody'; import ast from './ast.js'; diff --git a/lib/graphql/testing/astToQuery.test.js b/lib/graphql/testing/astToQuery.test.js old mode 100644 new mode 100755 index 0fa93e9..645c044 --- a/lib/graphql/testing/astToQuery.test.js +++ b/lib/graphql/testing/astToQuery.test.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; import { Symbols } from '../lib/astToBody'; import astToQuery, { diff --git a/lib/links/tests/main.js b/lib/links/tests/main.js old mode 100644 new mode 100755 index 66d23cd..63b08bf --- a/lib/links/tests/main.js +++ b/lib/links/tests/main.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; //import { // PostCollection, // CategoryCollection, diff --git a/lib/namedQuery/testing/client.test.js b/lib/namedQuery/testing/client.test.js index d0aa1dd..f23f6c9 100755 --- a/lib/namedQuery/testing/client.test.js +++ b/lib/namedQuery/testing/client.test.js @@ -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'; diff --git a/lib/namedQuery/testing/server.test.js b/lib/namedQuery/testing/server.test.js index baa1b68..c9c43ab 100755 --- a/lib/namedQuery/testing/server.test.js +++ b/lib/namedQuery/testing/server.test.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; import { postList, postListCached, diff --git a/lib/query/counts/testing/client.test.js b/lib/query/counts/testing/client.test.js old mode 100644 new mode 100755 index 0e1cbd5..bd2f137 --- a/lib/query/counts/testing/client.test.js +++ b/lib/query/counts/testing/client.test.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; import { Tracker } from 'meteor/tracker'; import PostsCollection from './bootstrap/collection.test'; import NamedQuery, { diff --git a/lib/query/testing/client.test.js b/lib/query/testing/client.test.js index e51f2c0..9ac090d 100755 --- a/lib/query/testing/client.test.js +++ b/lib/query/testing/client.test.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; import { createQuery } from 'meteor/cultofcoders:grapher'; import './reducers.client.test'; import './security.client.test'; diff --git a/lib/query/testing/link-cache/server.test.js b/lib/query/testing/link-cache/server.test.js index cc60716..3438c03 100755 --- a/lib/query/testing/link-cache/server.test.js +++ b/lib/query/testing/link-cache/server.test.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; import createFixtures from './fixtures'; import { createQuery } from 'meteor/cultofcoders:grapher'; import { diff --git a/lib/query/testing/metaFilters.server.test.js b/lib/query/testing/metaFilters.server.test.js old mode 100644 new mode 100755 index 241e508..7c89a7c --- a/lib/query/testing/metaFilters.server.test.js +++ b/lib/query/testing/metaFilters.server.test.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; import { createQuery } from 'meteor/cultofcoders:grapher'; describe('Hypernova - $meta filters', function () { diff --git a/lib/query/testing/reducers.client.test.js b/lib/query/testing/reducers.client.test.js index 3c78538..8d36982 100755 --- a/lib/query/testing/reducers.client.test.js +++ b/lib/query/testing/reducers.client.test.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; import { createQuery } from 'meteor/cultofcoders:grapher'; import waitForHandleToBeReady from './lib/waitForHandleToBeReady'; diff --git a/lib/query/testing/reducers.server.test.js b/lib/query/testing/reducers.server.test.js index 613c91b..1b39ac6 100755 --- a/lib/query/testing/reducers.server.test.js +++ b/lib/query/testing/reducers.server.test.js @@ -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'; diff --git a/lib/query/testing/security.client.test.js b/lib/query/testing/security.client.test.js old mode 100644 new mode 100755 index ac4cd4e..2b7c97d --- a/lib/query/testing/security.client.test.js +++ b/lib/query/testing/security.client.test.js @@ -1,3 +1,4 @@ +import { assert } from 'chai'; import { createQuery } from 'meteor/cultofcoders:grapher'; import waitForHandleToBeReady from './lib/waitForHandleToBeReady'; diff --git a/lib/query/testing/server.test.js b/lib/query/testing/server.test.js index 4c53bd4..ec647fa 100755 --- a/lib/query/testing/server.test.js +++ b/lib/query/testing/server.test.js @@ -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'; diff --git a/package.js b/package.js index 4239ded..529a032 100755 --- a/package.js +++ b/package.js @@ -31,7 +31,7 @@ Package.onUse(function(api) { 'reywood:publish-composite@1.5.2', 'dburles:mongo-collection-instances@0.3.5', 'herteby:denormalize@0.6.5', - 'peerlibrary:subscription-scope@0.1.0', + 'peerlibrary:subscription-scope@0.4.0', ]; api.use(packages); @@ -50,14 +50,14 @@ Package.onTest(function(api) { 'reywood:publish-composite@1.5.2', 'dburles:mongo-collection-instances@0.3.5', 'herteby:denormalize@0.6.5', - 'peerlibrary:subscription-scope@0.1.0', + 'peerlibrary:subscription-scope@0.4.0', 'mongo', ]; api.use(packages); api.use('tracker'); - api.use(['cultofcoders:mocha', 'practicalmeteor:chai']); + api.use(['meteortesting:mocha']); // LINKS api.addFiles('lib/links/tests/main.js', 'server');