[eslint] named async function are broken

see babel/eslint#207
This commit is contained in:
spalger 2015-11-16 14:30:06 -06:00
parent dd33c1e1fe
commit 2571a29406
2 changed files with 3 additions and 3 deletions

View file

@ -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';

View file

@ -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)) {