parent
dd33c1e1fe
commit
2571a29406
|
@ -17,7 +17,7 @@ describe('xsrf request filter', function () {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
async function makeServer(token) {
|
const makeServer = async function (token) {
|
||||||
const kbnServer = new KbnServer({
|
const kbnServer = new KbnServer({
|
||||||
server: { autoListen: false, xsrf: { token } },
|
server: { autoListen: false, xsrf: { token } },
|
||||||
plugins: { scanDirs: [src('plugins')] },
|
plugins: { scanDirs: [src('plugins')] },
|
||||||
|
@ -36,7 +36,7 @@ describe('xsrf request filter', function () {
|
||||||
});
|
});
|
||||||
|
|
||||||
return kbnServer;
|
return kbnServer;
|
||||||
}
|
};
|
||||||
|
|
||||||
describe('issuing tokens', function () {
|
describe('issuing tokens', function () {
|
||||||
const token = 'secur3';
|
const token = 'secur3';
|
||||||
|
|
|
@ -19,7 +19,7 @@ module.exports = async function (kbnServer, server, config) {
|
||||||
|
|
||||||
|
|
||||||
let path = [];
|
let path = [];
|
||||||
async function initialize(id) {
|
const initialize = async function (id) {
|
||||||
let plugin = plugins.byId[id];
|
let plugin = plugins.byId[id];
|
||||||
|
|
||||||
if (includes(path, id)) {
|
if (includes(path, id)) {
|
||||||
|
|
Loading…
Reference in a new issue