diff --git a/packages/component-aws-ses/package.json b/packages/component-aws-ses/package.json index 21500be0578aca6d2dfa147f4e3e5ddee0829738..fd43a58e99b6798744804a7b5ca959bb5ec5e5e5 100644 --- a/packages/component-aws-ses/package.json +++ b/packages/component-aws-ses/package.json @@ -6,9 +6,6 @@ "files": [ "src" ], - "scripts": { - "test": "jest" - }, "repository": { "type": "git", "url": "https://gitlab.coko.foundation/xpub/xpub" diff --git a/packages/component-invite/package.json b/packages/component-invite/package.json index 8f205cd7a469fc874f282ecc7f1918cc030df327..8573adb64bd575f40bfa52aa71bfc01744852f11 100644 --- a/packages/component-invite/package.json +++ b/packages/component-invite/package.json @@ -6,9 +6,6 @@ "files": [ "src" ], - "scripts": { - "test": "jest" - }, "repository": { "type": "git", "url": "https://gitlab.coko.foundation/xpub/xpub" diff --git a/packages/component-mail-service/package.json b/packages/component-mail-service/package.json index 09ca4ea72eafe7a7507fef3b6cd682216dad9850..17772ef5df67147fa311eeb1569af090e7de72be 100644 --- a/packages/component-mail-service/package.json +++ b/packages/component-mail-service/package.json @@ -6,9 +6,6 @@ "files": [ "src" ], - "scripts": { - "test": "jest" - }, "repository": { "type": "git", "url": "https://gitlab.coko.foundation/xpub/xpub" diff --git a/packages/xpub-faraday-server/src/mocks/User.js b/packages/xpub-faraday-server/src/mocks/User.js index 2ea447401e444a78401830c157d84aa84e6ba1c0..ae155c2ca5926d7cf683e95ea884f069fce05f5e 100644 --- a/packages/xpub-faraday-server/src/mocks/User.js +++ b/packages/xpub-faraday-server/src/mocks/User.js @@ -1,3 +1,5 @@ +/* eslint-disable func-names-any */ + function User(properties) { this.type = 'user' this.email = properties.email @@ -5,7 +7,7 @@ function User(properties) { this.password = properties.password } -User.prototype.save = jest.fn(() => { +User.prototype.save = jest.fn(function saveUser() { this.id = '111222' return Promise.resolve(this) })