Skip to content

Commit

Permalink
chore: Refactor common tests into @feathersjs/tests repository (#1309)
Browse files Browse the repository at this point in the history
  • Loading branch information
daffl authored Apr 25, 2019
1 parent afa4d55 commit 8f44a24
Show file tree
Hide file tree
Showing 47 changed files with 258 additions and 155 deletions.
2 changes: 1 addition & 1 deletion .codeclimate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ checks:
threshold: 20
method-lines:
config:
threshold: 80
threshold: 100
nested-control-flow:
config:
threshold: 6
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,5 @@ packages/authentication-client/lib
packages/authentication-oauth/lib
packages/configuration/lib
packages/commons/lib
packages/tests/lib
packages/transport-commons/lib
171 changes: 79 additions & 92 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/authentication-client/test/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ describe('@feathersjs/authentication-client', () => {
assert.strictEqual(typeof app.logout, 'function');
});

it('setAccessToken, getAccessToken, removeJwt', async () => {
it('setAccessToken, getAccessToken, removeAccessToken', async () => {
const auth = app.authentication;
const token = 'hi';

Expand Down
2 changes: 1 addition & 1 deletion packages/client/browser/test.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
var assert = require('assert');
var baseTests = require('feathers-commons/lib/test/client');
var baseTests = require('@feathersjs/tests/lib//client');

var feathers = window.feathers;
var socket = window.io();
Expand Down
1 change: 1 addition & 0 deletions packages/client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
"@feathersjs/rest-client": "^4.0.0-pre.0",
"@feathersjs/socketio": "^4.0.0-pre.0",
"@feathersjs/socketio-client": "^4.0.0-pre.0",
"@feathersjs/tests": "^4.0.0-pre.0",
"babel-loader": "^8.0.5",
"body-parser": "^1.18.3",
"feathers-memory": "^3.0.2",
Expand Down
Loading

0 comments on commit 8f44a24

Please sign in to comment.