mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-20 08:33:11 +00:00
refactor: update dependencies
This commit is contained in:
committed by
Rainer Killinger
parent
21710ee492
commit
bbbe4d5f1f
@@ -13,20 +13,22 @@
|
||||
* You should have received a copy of the GNU Affero General Public License
|
||||
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
*/
|
||||
// tslint:disable
|
||||
import * as supertest from 'supertest';
|
||||
import * as chaiAsPromised from 'chai-as-promised';
|
||||
import {timeout, slow, test, suite} from 'mocha-typescript';
|
||||
import {should, use} from 'chai';
|
||||
import {configureApp} from '../src/app';
|
||||
import {registerAddRequest, registerRemoveRequest} from './routes/plugin-register-route.spec';
|
||||
import {plugins} from '../src/common';
|
||||
// tslint:disable: no-implicit-dependencies
|
||||
import {SCPluginRemove} from '@openstapps/core';
|
||||
import * as nock from 'nock';
|
||||
import * as got from 'got';
|
||||
import * as sinon from 'sinon';
|
||||
import {Logger} from '@openstapps/logger';
|
||||
import * as express from 'express';
|
||||
import {should, use} from 'chai';
|
||||
import chaiAsPromised from 'chai-as-promised';
|
||||
import express from 'express';
|
||||
import got from 'got';
|
||||
import {slow, suite, test, timeout} from 'mocha-typescript';
|
||||
import nock from 'nock';
|
||||
import sinon from 'sinon';
|
||||
import supertest from 'supertest';
|
||||
import {configureApp} from '../src/app';
|
||||
import {plugins} from '../src/common';
|
||||
import {registerAddRequest, registerRemoveRequest} from './routes/plugin-register-route.spec';
|
||||
|
||||
// tslint:disable: completed-docs prefer-function-over-method no-magic-numbers member-ordering
|
||||
|
||||
should();
|
||||
use(chaiAsPromised);
|
||||
@@ -191,8 +193,7 @@ export class AppPluginSpec {
|
||||
// lets simulate that the plugin is already registered
|
||||
plugins.set(registerAddRequest.plugin.route, registerAddRequest.plugin);
|
||||
|
||||
class FooError extends Error {
|
||||
};
|
||||
class FooError extends Error {}
|
||||
// fake that got's post method throws an error
|
||||
sinon.stub(got, 'post')
|
||||
.callsFake(() => {
|
||||
|
||||
@@ -22,7 +22,7 @@ import {
|
||||
} from '@openstapps/core';
|
||||
import {should, use} from 'chai';
|
||||
import {slow, timeout, test, suite} from 'mocha-typescript';
|
||||
import * as chaiAsPromised from 'chai-as-promised';
|
||||
import chaiAsPromised from 'chai-as-promised';
|
||||
import {plugins} from '../../src/common';
|
||||
import {pluginRegisterHandler} from '../../src/routes/plugin-register-route';
|
||||
|
||||
|
||||
@@ -15,14 +15,14 @@
|
||||
*/
|
||||
// tslint:disable
|
||||
import {should, use, expect} from 'chai';
|
||||
import * as chaiAsPromised from 'chai-as-promised';
|
||||
import chaiAsPromised from 'chai-as-promised';
|
||||
import {slow, timeout, test, suite} from 'mocha-typescript';
|
||||
import {SCPluginMetaData, SCInternalServerErrorResponse, SCValidationErrorResponse} from '@openstapps/core';
|
||||
import {virtualPluginRoute} from '../../src/routes/virtual-plugin-route';
|
||||
import {mockReq} from 'sinon-express-mock'
|
||||
import * as nock from 'nock';
|
||||
import * as got from 'got';
|
||||
import * as sinon from 'sinon';
|
||||
import nock from 'nock';
|
||||
import got from 'got';
|
||||
import sinon from 'sinon';
|
||||
import {Request} from 'express';
|
||||
import {registerAddRequest} from './plugin-register-route.spec';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user