mirror of
https://gitlab.com/openstapps/openstapps.git
synced 2026-01-10 03:32:52 +00:00
refactor: update all
This commit is contained in:
committed by
Rainer Killinger
parent
df69bfd95f
commit
7424ad9831
@@ -21,7 +21,7 @@ import {
|
||||
import {expect, use} from 'chai';
|
||||
import chaiAsPromised from 'chai-as-promised';
|
||||
import {Request} from 'express';
|
||||
import got from 'got';
|
||||
import got, { Options } from 'got';
|
||||
import nock from 'nock';
|
||||
import sinon from 'sinon';
|
||||
import {mockReq} from 'sinon-express-mock';
|
||||
@@ -80,8 +80,8 @@ describe('Virtual plugin routes', async function () {
|
||||
await virtualPluginRoute(req, plugin);
|
||||
|
||||
expect(gotStub.args[0][0]).to.equal(plugin.route);
|
||||
expect(gotStub.args[0][1].baseUrl).to.equal(plugin.address);
|
||||
expect(gotStub.args[0][1].body).to.equal(req.body);
|
||||
expect(((gotStub.args[0] as any)[1] as Options).prefixUrl).to.equal(plugin.address);
|
||||
expect(((gotStub.args[0] as any)[1] as Options).body).to.equal(req.body);
|
||||
});
|
||||
|
||||
it('should provide data from the plugin when its route is called', async function () {
|
||||
|
||||
Reference in New Issue
Block a user