mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
6584c6650d
commit
c76485e093
2 changed files with 3 additions and 3 deletions
|
@ -17,7 +17,7 @@ describe('xsrf request filter', function () {
|
|||
});
|
||||
}
|
||||
|
||||
async function makeServer(token) {
|
||||
const makeServer = async function (token) {
|
||||
const kbnServer = new KbnServer({
|
||||
server: { autoListen: false, xsrf: { token } },
|
||||
plugins: { scanDirs: [src('plugins')] },
|
||||
|
@ -36,7 +36,7 @@ describe('xsrf request filter', function () {
|
|||
});
|
||||
|
||||
return kbnServer;
|
||||
}
|
||||
};
|
||||
|
||||
describe('issuing tokens', function () {
|
||||
const token = 'secur3';
|
||||
|
|
|
@ -19,7 +19,7 @@ module.exports = async function (kbnServer, server, config) {
|
|||
|
||||
|
||||
let path = [];
|
||||
async function initialize(id) {
|
||||
const initialize = async function (id) {
|
||||
let plugin = plugins.byId[id];
|
||||
|
||||
if (includes(path, id)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue